Version Description
- internal code improvements
- tiny UI update
Download this release
Release Info
Developer | artemopinionstage |
Plugin | Poll, Survey, Quiz, Slideshow, Form, Story & Landing Page |
Version | 19.8.12 |
Comparing to | |
See all releases |
Code changes from version 19.8.11 to 19.8.12
- admin/css/menu-page.css +1 -1
- admin/js/content-popup.js +1 -1
- assets/admin/src/menu-page.scss +10 -6
- assets/content-popup/app/components/notification.js +1 -1
- assets/content-popup/app/components/popup-content.js +37 -35
- assets/content-popup/app/components/widget-list.js +8 -8
- assets/content-popup/app/index.js +7 -5
- assets/content-popup/app/store.js +22 -22
- assets/content-popup/index.js +19 -15
- assets/content-popup/styles/content-popup.scss +4 -2
- assets/content-popup/webpack.config.js +7 -4
- assets/content-popup/widget-list.js +6 -5
- assets/gutenberg/build/index.asset.php +1 -1
- assets/gutenberg/build/index.js +1 -1
- assets/gutenberg/src/configuration.js +23 -23
- assets/gutenberg/src/edit.js +175 -141
- assets/gutenberg/src/index.js +8 -8
- assets/gutenberg/src/save.js +34 -32
- opinionstage-polls.php +1 -1
- plugin.php +2 -2
- readme.txt +4 -1
admin/css/menu-page.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@font-face{font-family:'os-icon-plugin-plugin-font';src:url("fonts/os-icon-font.eot?frvqyp");src:url("fonts/os-icon-font.eot?frvqyp#iefix") format("embedded-opentype"),url("fonts/os-icon-font.ttf?frvqyp") format("truetype"),url("fonts/os-icon-font.woff?frvqyp") format("woff"),url("fonts/os-icon-font.svg?frvqyp#os-iconn-font") format("svg");font-weight:normal;font-style:normal}.opinionstage-content-popup-contents [class^="icon-"],.opinionstage-content-popup-contents [class*=" icon-"],#wpwrap [class^="icon-"],#wpwrap [class*=" icon-"]{font-family:'os-icon-plugin-plugin-font' !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-os-common-date:before{content:"\E91A"}.icon-os-status-closed:before{content:"\e95f"}.icon-os-status-open:before{content:"\e961"}.icon-os-plugin-form-address:before{content:"\e900"}.icon-os-plugin-form-email:before{content:"\e901"}.icon-os-plugin-form-name:before{content:"\e902"}.icon-os-plugin-form-phone:before{content:"\e903"}.icon-os-plugin-common-arrow-left2:before{content:"\e904"}.icon-os-plugin-common-arrow-right2:before{content:"\e905"}.icon-os-plugin-reports-list:before{content:"\e906"}.icon-os-plugin-reports-personality:before{content:"\e907"}.icon-os-plugin-reports-poll:before{content:"\e908"}.icon-os-plugin-reports-set:before{content:"\e909"}.icon-os-plugin-widget-slideshow:before{content:"\e90a"}.icon-os-plugin-reports-trivia:before{content:"\e90b"}.icon-os-plugin-common-up:before{content:"\e90c"}.icon-os-plugin-layout-image-poll:before{content:"\e90d"}.icon-os-plugin-common-arrow-left:before{content:"\e90e"}.icon-os-plugin-common-arrow-right:before{content:"\e90f"}.icon-os-plugin-form-user:before{content:"\e910"}.icon-os-plugin-sn-pinterest:before{content:"\e911"}.icon-os-plugin-sn-reddit:before{content:"\e912"}.icon-os-plugin-sn-whatsapp:before{content:"\e913"}.icon-os-plugin-brand-logo-small:before{content:"\e914"}.icon-os-plugin-brand-logo:before{content:"\e915"}.icon-os-plugin-common-addnew:before{content:"\e916"}.icon-os-plugin-common-checkbox-blank:before{content:"\e917"}.icon-os-plugin-common-checkbox-checked:before{content:"\e918"}.icon-os-plugin-common-close:before{content:"\e919"}.icon-os-plugin-common-date:before{content:"\e91a"}.icon-os-plugin-common-dot:before{content:"\e91b"}.icon-os-plugin-common-down:before{content:"\e91c"}.icon-os-plugin-common-help:before{content:"\e91d"}.icon-os-plugin-common-link:before{content:"\e91e"}.icon-os-plugin-common-menu-dd-closed:before{content:"\e91f"}.icon-os-plugin-common-menu-dd-open:before{content:"\e920"}.icon-os-plugin-common-menu-medium:before{content:"\e921"}.icon-os-plugin-common-menu:before{content:"\e922"}.icon-os-plugin-common-minimize:before{content:"\e923"}.icon-os-plugin-common-more:before{content:"\e924"}.icon-os-plugin-common-plus:before{content:"\e925"}.icon-os-plugin-common-poll:before{content:"\e926"}.icon-os-plugin-common-search:before{content:"\e927"}.icon-os-plugin-common-settings:before{content:"\e928"}.icon-os-plugin-common-tip:before{content:"\e929"}.icon-os-plugin-filter-all:before{content:"\e92a"}.icon-os-plugin-filter-facebook:before{content:"\e92b"}.icon-os-plugin-filter-female:before{content:"\e92c"}.icon-os-plugin-filter-friends:before{content:"\e92d"}.icon-os-plugin-filter-gplus:before{content:"\e92e"}.icon-os-plugin-filter-hidden:before{content:"\e92f"}.icon-os-plugin-filter-male:before{content:"\e930"}.icon-os-plugin-filter-public:before{content:"\e931"}.icon-os-plugin-filter-seperator:before{content:"\e932"}.icon-os-plugin-filter-twitter:before{content:"\e933"}.icon-os-plugin-form-check:before{content:"\e934"}.icon-os-plugin-form-drag:before{content:"\e935"}.icon-os-plugin-form-error:before{content:"\e936"}.icon-os-plugin-form-image:before{content:"\e937"}.icon-os-plugin-form-success:before{content:"\e938"}.icon-os-plugin-form-video:before{content:"\e939"}.icon-os-plugin-hp-engagement:before{content:"\e93a"}.icon-os-plugin-hp-insights:before{content:"\e93b"}.icon-os-plugin-hp-revenue:before{content:"\e93c"}.icon-os-plugin-hp-traffic:before{content:"\e93d"}.icon-os-plugin-layout-h2h:before{content:"\e93e"}.icon-os-plugin-layout-mc:before{content:"\e93f"}.icon-os-plugin-layout-thumbnails:before{content:"\e940"}.icon-os-plugin-menu-content:before{content:"\e941"}.icon-os-plugin-menu-placements:before{content:"\e942"}.icon-os-plugin-menu-reports:before{content:"\e943"}.icon-os-plugin-menu-revenue:before{content:"\e944"}.icon-os-plugin-pinterest:before{content:"\e945"}.icon-os-plugin-poll-client:before{content:"\e946"}.icon-os-plugin-poll-voter:before{content:"\e947"}.icon-os-plugin-quiz-correct:before{content:"\e948"}.icon-os-plugin-quiz-restart:before{content:"\e949"}.icon-os-plugin-quiz-wrong:before{content:"\e94a"}.icon-os-plugin-report-contacts:before{content:"\e94b"}.icon-os-plugin-report-discovery:before{content:"\e94c"}.icon-os-plugin-report-revenue:before{content:"\e94d"}.icon-os-plugin-report-stats:before{content:"\e94e"}.icon-os-plugin-report-time:before{content:"\e94f"}.icon-os-plugin-report-views:before{content:"\e950"}.icon-os-plugin-reports-emails:before{content:"\e951"}.icon-os-plugin-reports-polls:before{content:"\e952"}.icon-os-plugin-reports-revenue:before{content:"\e953"}.icon-os-plugin-reports-sets:before{content:"\e954"}.icon-os-plugin-reports-time:before{content:"\e955"}.icon-os-plugin-reports-traffic:before{content:"\e956"}.icon-os-plugin-reports-votes:before{content:"\e957"}.icon-os-plugin-set-arrow-left:before{content:"\e958"}.icon-os-plugin-set-arrow-right:before{content:"\e959"}.icon-os-plugin-sn-embed:before{content:"\e95a"}.icon-os-plugin-sn-facebook:before{content:"\e95b"}.icon-os-plugin-sn-gplus:before{content:"\e95c"}.icon-os-plugin-sn-tumblr:before{content:"\e95d"}.icon-os-plugin-sn-twitter:before{content:"\e95e"}.icon-os-plugin-status-closed:before{content:"\e95f"}.icon-os-plugin-status-draft:before{content:"\e960"}.icon-os-plugin-status-open:before{content:"\e961"}.icon-os-plugin-status-published:before{content:"\e962"}.icon-os-plugin-widget-form:before{content:"\e963"}.icon-os-icon-plugin-story:before{content:"\e964"}.opinionstage-button{border-radius:3px;display:inline-block;border-style:hidden;color:#fff;font-size:15px;font-weight:600;min-width:100px;padding:9px 10px;text-decoration:none;text-align:center;transition:0.2s ease;cursor:pointer}.opinionstage-button:hover{color:#fff}.opinionstage-button__pink{background-color:#F46368}.opinionstage-button__blue{background-color:#32adbc}.opinionstage-button__white{background-color:#fff;border:1px solid #DDDDDD;color:#32373c}.opinionstage-button__white:hover{color:#32373c}.opinionstage-button__uppercase{text-transform:uppercase}#opinionstage-content{height:auto;margin:0;min-height:100%;overflow:hidden;padding-top:20px;width:100%}#opinionstage-content .opinionstage-header-wrapper{background:#232121;margin-right:20px;overflow:hidden;position:relative}#opinionstage-content .opinionstage-logo-wrapper{padding:10px 30px;max-width:780px}#opinionstage-content .opinionstage-logo{background:url("../images/os-logo-header.png") no-repeat 0 0;background-size:contain;display:inline-block;height:30px;width:150px}#opinionstage-content .opinionstage-logo__dark{background:url("../images/logo-dark-font.svg") no-repeat 0 0;background-size:contain}#opinionstage-content .opinionstage-connect-form{display:inline-block}#opinionstage-content .opinionstage-blue-btn{background-color:#32adbc;border-radius:3px;border-style:hidden;color:#ffffff;display:inline-block;font-size:15px;font-weight:600;min-width:130px;padding:11px 10px;text-decoration:none;text-align:center;transition:0.2s ease;margin-right:0}#opinionstage-content .opinionstage-blue-btn:hover{background-color:#2f9fad}#opinionstage-content .opinionstage-blue-btn.border{background:#fff;color:#32adbc;border:1px solid #32adbc}#opinionstage-content .opinionstage-blue-btn.border:hover{background-color:rgba(49,174,190,0.1)}#opinionstage-content a.opinionstage-blue-bordered-btn{border:1px solid #32adbc;border-radius:2px;color:#32adbc;display:block;padding:10px 5px;text-align:center;text-decoration:none}#opinionstage-content .opinionstage-dashboard-right a.opinionstage-blue-bordered-btn{float:left;margin-right:5px}#opinionstage-content a.opinionstage-blue-bordered-btn.disabled{color:#cacac8;border:1px solid #cacac8}#opinionstage-content a.opinionstage-blue-bordered-btn.disabled:hover{background-color:#f9f9f9;color:#cacac8;cursor:default}#opinionstage-content .opinionstage-dashboard{background-color:#fff;margin-right:20px;min-height:800px;overflow:hidden}#opinionstage-content .opinionstage-dashboard-left{margin:30px}#opinionstage-content .opinionstage-dashboard-left .opinionstage-section-header .opinionstage-section-title{float:left;font-size:30px;padding:0;line-height:1}#opinionstage-content #opinionstage-section-create .opinionstage-section-content{height:435px;display:table;border-collapse:collapse;width:100%;max-width:960px}#opinionstage-content #opinionstage-section-create .opinionstage-section-raw{border:1px solid #c8c8c9;display:table-row;border-left:none;border-right:none}#opinionstage-content #opinionstage-section-create .opinionstage-section-cell{display:table-cell;padding:20px 0;vertical-align:middle}#opinionstage-content #opinionstage-section-create .opinionstage-section-cell.opinionstage-icon-cell{color:#3499c2;font-size:35px;text-align:center;width:7%}#opinionstage-content #opinionstage-section-create .opinionstage-section-cell.opinionstage-btn-cell{text-align:right;width:36%}#opinionstage-content #opinionstage-section-create .opinionstage-section-cell.opinionstage-btn-cell a:last-child{margin-right:0}#opinionstage-content #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell{width:57%}#opinionstage-content #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell .title{font-size:22px;font-weight:600;margin-bottom:5px;color:#3c434a;text-decoration:none}#opinionstage-content #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell .example{color:#b1b1b1;font-size:14px;line-height:normal}#opinionstage-content #opinionstage-section-create .opinionstage-blue-btn{padding:12px 10px;text-transform:capitalize;min-width:150px}#opinionstage-content #opinionstage-section-create .opinionstage-blue-btn:not(:last-child){margin-right:10px}@media (max-width: 1230px){#opinionstage-content #opinionstage-section-create .opinionstage-blue-btn{display:block;width:auto}#opinionstage-content #opinionstage-section-create .opinionstage-blue-btn:not(:last-child){margin-right:0;margin-bottom:10px}}#opinionstage-content .opinionstage-help-row{border-bottom:1px solid #c8c8c9;margin:0 10px;padding:25px 0 25px 10px}#opinionstage-content .opinionstage-help-row:last-child{border-bottom:none}#opinionstage-content .content__list{overflow-y:visible;height:auto;min-height:calc(92vh - 160px)}#opinionstage-content .opinionstage-trusted{text-align:center;font-size:18px;line-height:50px;color:#85858A}#opinionstage-content .opinionstage-trusted span{color:#000}#opinionstage-content a.opinionstage-blue-bordered-btn :hover,.opinionstage-sidebar-widget a.opinionstage-blue-bordered-btn :hover{background-color:rgba(49,174,190,0.1)}#opinionstage-content a.opinionstage-blue-bordered-btn:focus,.opinionstage-sidebar-widget a.opinionstage-blue-bordered-btn:focus{box-shadow:none}p.failed-load-items-request{text-align:center;font-size:16px;padding:15px 0;max-width:1000px}.toplevel_page_opinionstage-getting-started{background:#F5F7FA}.toplevel_page_opinionstage-getting-started #wpcontent{padding-left:0}.opinionstage-getting-started-section{padding:25px;max-width:950px;color:#6E6E6E;margin-left:170px}@media (max-width: 1024px){.opinionstage-getting-started-section{margin-left:30px}}@media (max-width: 768px){.opinionstage-getting-started-section{margin-left:0}}.opinionstage-getting-started-section__no-padding{padding:0 !important}.opinionstage-getting-started-section .opinionstage-connect-form .opinionstage-button{font-weight:500;font-size:18px}.opinionstage-getting-started-section .opinionstage-logo{margin-left:25px;margin-top:25px}.opinionstage-getting-started-section .opinionstage-button{border-radius:0;margin-right:.5em;min-width:165px}.opinionstage-getting-started-section .opinionstage-clients{display:flex;justify-content:space-between}.opinionstage-getting-started-section .opinionstage-clients li{display:flex}.opinionstage-getting-started-section .opinionstage-clients img{margin-top:auto;margin-bottom:auto}.opinionstage-two-columns{color:#6E6E6E;display:flex;flex-wrap:wrap;padding-bottom:85px}@media (max-width: 768px){.opinionstage-two-columns{text-align:center}}.opinionstage-two-columns__title{font-size:30px;line-height:1.3;font-weight:600;margin-top:-5px}.opinionstage-two-columns__text{width:47%}@media (max-width: 768px){.opinionstage-two-columns__text{width:100%;margin-bottom:55px}}.opinionstage-two-columns__text p{color:#25282B;font-size:18px;margin-bottom:42px}.opinionstage-two-columns__img{padding-left:30px;width:53%;box-sizing:border-box}@media (max-width: 768px){.opinionstage-two-columns__img{width:100%}}.opinionstage-two-columns__img img{width:100%}.opinionstage-bg-white{background:#fff}.opinionstage-bg-blue{background-color:#F5F7FA}.opinionstage-getting-started-examples{margin-bottom:80px}.opinionstage-getting-started-examples__title{text-align:center;font-weight:600;font-size:26px;line-height:32px;margin-top:85px}@media (max-width: 500px){.opinionstage-getting-started-examples__title{text-align:left}}.opinionstage-getting-started-examples__items{display:flex;padding-top:25px;justify-content:space-between}@media (max-width: 500px){.opinionstage-getting-started-examples__items{flex-direction:column}}.opinionstage-getting-started-examples__item__title{font-size:14px;line-height:20px}.opinionstage-getting-started-examples__list{font-size:15px;line-height:30px}.opinionstage-getting-started-examples__list a{color:#25282B}.opinionstage-getting-started-video{display:flex;flex-direction:column}.opinionstage-getting-started-video .opinionstage-getting-started-examples__title{margin-top:75px}.opinionstage-getting-started-video__description{text-align:center;font-size:15px;line-height:20px}.opinionstage-getting-started-video iframe{margin-left:auto;margin-right:auto;border:20px solid #fff;margin-top:30px;box-shadow:5px 5px rgba(0,0,0,0.04)}.opinionstage-connect-form .opinionstage-button{min-height:50px}.opinionstage-connect-form__disconnect button[type=submit]{margin-bottom:0;min-height:auto}h1.gettingStartedHeading{font-size:30px;letter-spacing:1px;line-height:35px;margin:0 auto;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;width:100%}#opinionstage-content a.gettingStartedCreate.button{background:#3499c2;box-shadow:0 0 0 0;color:#ffffff;display:block;font-size:20px;height:auto;letter-spacing:1px;margin-top:20px;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;padding:11px 10px;width:100%}@media only screen and (max-width: 375px){#opinionstage-content .opinionstage-blue-btn{margin-left:30px;margin-top:15px}#opinionstage-content a.gettingStartedCreate.button{margin:20px auto 0 !important}.text-section-getting-stared-os p{text-align:left}}.opinionstage-dashboard-left .os_use_template_btn{margin:0;padding:12px 15px !important}td.long{padding-left:10px;width:48%}td.long>div{position:relative;width:90%;height:85px}td.long table{bottom:0;color:#b1b1b1;line-height:normal;position:absolute;width:100%}td.long table td{max-width:300px}td.long a{color:#212120;display:block;font-size:16px;font-weight:normal;line-height:normal;max-height:3.6em;max-width:100%;overflow:hidden;position:absolute;text-decoration:none;text-overflow:ellipsis;word-wrap:break-word;white-space:nowrap}td.action{width:30%}td.action a.opinionstage-blue-bordered-btn{font-size:15px;margin-right:9px}span.os-icon-plugin.icon-os-common-date{float:left;margin-right:4px}.label{line-height:15px}.content-item-label{background-color:#222120;color:#fff;font-size:12px;padding:2px 4px}a.opinionstage-blue-bordered-btn{float:left;margin-right:5px;border:1px solid #3aaebd;border-radius:3px;color:#3aaebd;display:block;font-size:14px;padding:10px 30px;text-align:center;text-decoration:none;text-transform:uppercase;transition:.2s ease}.content-item-label{background-color:#222120;color:white;font-size:12px;left:0;padding:1px 5px;position:absolute;text-transform:uppercase;top:0}.opinionstage-with-separator:before{content:"";margin:0 10px;height:100%;border-left:1px solid #b1b1b1}.opinionstage-section-header{font-size:23px;height:40px;overflow:visible}.opinionstage-anchors-list{position:absolute;z-index:10;top:100%;left:0;width:100%;background:white;border:1px solid #e5e5e5;opacity:0;visibility:hidden;transition:all .5s ease;margin-top:17px;margin-bottom:0}.opinionstage-anchors-list.opened{opacity:1;visibility:visible}.opinionstage-anchors-list a{width:100%}div#container .opinionstage-section-header{width:100%}.opinionstage-section-title{float:left;font-size:30px;padding:10px 0}.opinionstage-need-help-link{float:right !important}.opinionstage-section-header a{color:#32adbc;float:right;font-size:14px;font-weight:600;line-height:normal;margin:10px 25px;margin-right:0;text-decoration:none}.opinionstage-connectivity-status{color:#fff !important;float:right;font-size:15px;margin:5px 0}.opinionstage-disconnect{background-color:transparent;border:none;color:#32adbc !important;cursor:pointer}.opinionstage-disconnect:focus{border:none}.opinionstage-disconnect:focus{outline:0 none}.opinionstage-title{font-weight:bold}#overlay{background-color:#fdfdfdc7;display:block;height:100%;filter:alpha(opacity=70);opacity:0.7;position:absolute;width:100%;z-index:100;top:0}.opinionstage-item-view-dashboard{margin:30px;width:1000px}.opinionstage-header-inner-container{float:right}.opinionstage-header-inner-container .select-wrapper{padding:0 9px;display:inline-block}.opinionstage-header-inner-container .select-wrapper:last-child{padding-right:0}.opinionstage-header-inner-container .opinionstage-header-inner-section{border-right:1px solid #f3f3f3;float:left;padding-right:4px}.opinionstage-header-inner-section a,.os-long-text a{text-decoration:none}.search-container{background-color:transparent;display:inline-block;width:150px}.opinionstage-section-header #itemList{font-size:12px;font-weight:bold;height:auto;padding:10px;width:100%}.opinionstage-section-header #opinionstage-my-items-search-field{color:#797979;height:auto;padding:8.5px 10px;width:100%}.opinionstage-item-action-container{float:right}.opinionstage-item-action-container .opinionstage-edit-content{padding:13px 17px !important}div#opinionstage-load-more{background-color:#f1f1f1;border-color:#f1f1f1;color:#444;margin:0}.opinionstage-item-view-dashboard #opinionstage-items-table{width:100%}.opinionstage-item-view-dashboard #opinionstage-items-table div.label{font-size:13px}#opinionstage-content .opinionstage-item-view-dashboard .opinionstage-dashboard-section{margin-bottom:5px}#opinionistage-my-items-page-modal-wrapper{display:none;position:fixed;height:100%;width:100%;bottom:0;left:0;border-radius:6px / 6px;background-color:rgba(0,0,0,0.8);z-index:9999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#opinionistage-my-items-page-modal-wrapper .inner{background:#f5f5f5;padding:1px 15px 10px 15px;margin-top:20px}#opinionistage-my-items-page-modal-wrapper .opinionistage-my-items-page-modal{background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:6px;overflow:hidden;width:650px;padding:25px 35px;font-size:16px}#opinionistage-my-items-page-modal-wrapper .opinionistage-my-items-page-modal a{color:#32adbc}#opinionistage-my-items-page-modal-wrapper .opinionistage-my-items-page-modal a:focus{outline:none;box-shadow:none}#opinionistage-my-items-page-modal-wrapper .opinionistage-my-items-page-modal a.no-text-decoration{text-decoration:none}#opinionistage-my-items-page-modal-wrapper .opinionistage-my-items-page-modal p{font-size:16px}#opinionistage-my-items-page-modal-wrapper .opinionstage-textarea-wrapper{display:flex;align-items:center}#opinionistage-my-items-page-modal-wrapper .opinionstage-textarea-wrapper textarea{resize:none;margin:10px 10px 10px 0;padding:10px;width:500px;border-radius:0 0 3px 3px;border:1px solid #3aaebd;background:#fff}#opinionistage-my-items-page-modal-wrapper .opinionstage-textarea-wrapper textarea:focus{box-shadow:none}#opinionistage-my-items-page-modal-wrapper .opinionstage-close{position:absolute;right:16px;top:12px;width:20px;height:20px;cursor:pointer}#opinionistage-my-items-page-modal-wrapper .opinionstage-close:before,#opinionistage-my-items-page-modal-wrapper .opinionstage-close:after{position:absolute;left:15px;content:' ';height:17px;width:2px;background-color:#b1b1b1}#opinionistage-my-items-page-modal-wrapper .opinionstage-close:after{transform:rotate(-45deg)}#opinionistage-my-items-page-modal-wrapper .opinionstage-close:before{transform:rotate(45deg)}#opinionistage-my-items-page-modal-wrapper ul{margin-left:17px;list-style:disc}#opinionistage-my-items-page-modal-wrapper ul li{margin-bottom:15px}.toplevel_page_opinionstage-settings .selected-draft__container{position:fixed !important}@media only screen and (max-width: 1230px){#opinionstage-content .opinionstage-dashboard-left,#opinionstage-content .opinionstage-dashboard-right{float:none;width:auto}#opinionstage-content .opinionstage-dashboard{overflow-y:scroll}#opinionstage-content .opinionstage-item-view-dashboard .opinionstage-section-header .opinionstage-section-title{padding:25px 0}#opinionstage-content .opinionstage-item-view-dashboard .opinionstage-dashboard-section .opinionstage-section-header{height:95px}#opinionstage-content .opinionstage-dashboard-section .opinionstage-section-header .opinionstage-header-inner-section a{display:block;float:none}.opinionstage-create-btn{margin-bottom:10px;margin-right:0}.opinionstage-item-action-container{float:none}#opinionstage-items-table .action .opinionstage-item-action-container a{display:block;float:none;margin-bottom:10px;width:80%}.opinionstage-item-view-dashboard{width:auto}}.opinionstage-no-items{font-weight:600;font-size:15px;color:#212120}a.opinionstage-add-our-first-item{font-weight:600;font-size:15px;color:#3499c2}#opinionstage-content .opinionstage-tutorials-and-help__hero{padding:60px 0 100px 0}@media (max-width: 720px){#opinionstage-content .opinionstage-tutorials-and-help__hero{padding-bottom:0;background-color:#fff}}#opinionstage-content .opinionstage-tutorials-and-help__hero__header{font-size:40px;line-height:54px;color:#25282B;text-align:center;margin:0}#opinionstage-content .opinionstage-tutorials-and-help__buttons{margin-top:60px;text-align:center}#opinionstage-content .opinionstage-tutorials-and-help__button{font-size:14px;font-weight:300;padding:16px 30px 16px 50px;border-radius:0;display:inline-block;position:relative;box-sizing:border-box}#opinionstage-content .opinionstage-tutorials-and-help__button:nth-child(2n){margin:0 20px}@media (max-width: 720px){#opinionstage-content .opinionstage-tutorials-and-help__button{width:100%;margin:10px 0 0 0 !important;text-align:left;padding-left:60px}}#opinionstage-content .opinionstage-tutorials-and-help__button svg{position:absolute;left:15px;top:50%;transform:translateY(-50%)}#opinionstage-content .opinionstage-tutorials-and-help__container{max-width:720px;margin-left:auto;margin-right:auto}@media (max-width: 720px){#opinionstage-content .opinionstage-tutorials-and-help__container{padding-right:20px}}#opinionstage-content .opinionstage-tutorials-and-help__videos{margin-top:20px}#opinionstage-content .opinionstage-tutorials-and-help__video{text-align:center}#opinionstage-content .opinionstage-tutorials-and-help__video__title{font-size:26px;line-height:35px;text-align:center;margin-top:80px;font-weight:400}#opinionstage-content .opinionstage-tutorials-and-help__video__title__link{-webkit-text-decoration-color:#25282B;text-decoration-color:#25282B}@media (max-width: 720px){#opinionstage-content .opinionstage-tutorials-and-help__video__title{margin-top:40px;margin-bottom:30px;font-size:16px;line-height:22px}}body.opinion-stage_page_opinionstage-help-resource{background-color:#fff}body.opinion-stage_page_opinionstage-help-resource .opinionstage-logo-wrapper{max-width:none !important}
|
1 |
+
@font-face{font-family:'os-icon-plugin-plugin-font';src:url("fonts/os-icon-font.eot?frvqyp");src:url("fonts/os-icon-font.eot?frvqyp#iefix") format("embedded-opentype"),url("fonts/os-icon-font.ttf?frvqyp") format("truetype"),url("fonts/os-icon-font.woff?frvqyp") format("woff"),url("fonts/os-icon-font.svg?frvqyp#os-iconn-font") format("svg");font-weight:normal;font-style:normal}.opinionstage-content-popup-contents [class^="icon-"],.opinionstage-content-popup-contents [class*=" icon-"],#wpwrap [class^="icon-"],#wpwrap [class*=" icon-"]{font-family:'os-icon-plugin-plugin-font' !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-os-common-date:before{content:"\E91A"}.icon-os-status-closed:before{content:"\e95f"}.icon-os-status-open:before{content:"\e961"}.icon-os-plugin-form-address:before{content:"\e900"}.icon-os-plugin-form-email:before{content:"\e901"}.icon-os-plugin-form-name:before{content:"\e902"}.icon-os-plugin-form-phone:before{content:"\e903"}.icon-os-plugin-common-arrow-left2:before{content:"\e904"}.icon-os-plugin-common-arrow-right2:before{content:"\e905"}.icon-os-plugin-reports-list:before{content:"\e906"}.icon-os-plugin-reports-personality:before{content:"\e907"}.icon-os-plugin-reports-poll:before{content:"\e908"}.icon-os-plugin-reports-set:before{content:"\e909"}.icon-os-plugin-widget-slideshow:before{content:"\e90a"}.icon-os-plugin-reports-trivia:before{content:"\e90b"}.icon-os-plugin-common-up:before{content:"\e90c"}.icon-os-plugin-layout-image-poll:before{content:"\e90d"}.icon-os-plugin-common-arrow-left:before{content:"\e90e"}.icon-os-plugin-common-arrow-right:before{content:"\e90f"}.icon-os-plugin-form-user:before{content:"\e910"}.icon-os-plugin-sn-pinterest:before{content:"\e911"}.icon-os-plugin-sn-reddit:before{content:"\e912"}.icon-os-plugin-sn-whatsapp:before{content:"\e913"}.icon-os-plugin-brand-logo-small:before{content:"\e914"}.icon-os-plugin-brand-logo:before{content:"\e915"}.icon-os-plugin-common-addnew:before{content:"\e916"}.icon-os-plugin-common-checkbox-blank:before{content:"\e917"}.icon-os-plugin-common-checkbox-checked:before{content:"\e918"}.icon-os-plugin-common-close:before{content:"\e919"}.icon-os-plugin-common-date:before{content:"\e91a"}.icon-os-plugin-common-dot:before{content:"\e91b"}.icon-os-plugin-common-down:before{content:"\e91c"}.icon-os-plugin-common-help:before{content:"\e91d"}.icon-os-plugin-common-link:before{content:"\e91e"}.icon-os-plugin-common-menu-dd-closed:before{content:"\e91f"}.icon-os-plugin-common-menu-dd-open:before{content:"\e920"}.icon-os-plugin-common-menu-medium:before{content:"\e921"}.icon-os-plugin-common-menu:before{content:"\e922"}.icon-os-plugin-common-minimize:before{content:"\e923"}.icon-os-plugin-common-more:before{content:"\e924"}.icon-os-plugin-common-plus:before{content:"\e925"}.icon-os-plugin-common-poll:before{content:"\e926"}.icon-os-plugin-common-search:before{content:"\e927"}.icon-os-plugin-common-settings:before{content:"\e928"}.icon-os-plugin-common-tip:before{content:"\e929"}.icon-os-plugin-filter-all:before{content:"\e92a"}.icon-os-plugin-filter-facebook:before{content:"\e92b"}.icon-os-plugin-filter-female:before{content:"\e92c"}.icon-os-plugin-filter-friends:before{content:"\e92d"}.icon-os-plugin-filter-gplus:before{content:"\e92e"}.icon-os-plugin-filter-hidden:before{content:"\e92f"}.icon-os-plugin-filter-male:before{content:"\e930"}.icon-os-plugin-filter-public:before{content:"\e931"}.icon-os-plugin-filter-seperator:before{content:"\e932"}.icon-os-plugin-filter-twitter:before{content:"\e933"}.icon-os-plugin-form-check:before{content:"\e934"}.icon-os-plugin-form-drag:before{content:"\e935"}.icon-os-plugin-form-error:before{content:"\e936"}.icon-os-plugin-form-image:before{content:"\e937"}.icon-os-plugin-form-success:before{content:"\e938"}.icon-os-plugin-form-video:before{content:"\e939"}.icon-os-plugin-hp-engagement:before{content:"\e93a"}.icon-os-plugin-hp-insights:before{content:"\e93b"}.icon-os-plugin-hp-revenue:before{content:"\e93c"}.icon-os-plugin-hp-traffic:before{content:"\e93d"}.icon-os-plugin-layout-h2h:before{content:"\e93e"}.icon-os-plugin-layout-mc:before{content:"\e93f"}.icon-os-plugin-layout-thumbnails:before{content:"\e940"}.icon-os-plugin-menu-content:before{content:"\e941"}.icon-os-plugin-menu-placements:before{content:"\e942"}.icon-os-plugin-menu-reports:before{content:"\e943"}.icon-os-plugin-menu-revenue:before{content:"\e944"}.icon-os-plugin-pinterest:before{content:"\e945"}.icon-os-plugin-poll-client:before{content:"\e946"}.icon-os-plugin-poll-voter:before{content:"\e947"}.icon-os-plugin-quiz-correct:before{content:"\e948"}.icon-os-plugin-quiz-restart:before{content:"\e949"}.icon-os-plugin-quiz-wrong:before{content:"\e94a"}.icon-os-plugin-report-contacts:before{content:"\e94b"}.icon-os-plugin-report-discovery:before{content:"\e94c"}.icon-os-plugin-report-revenue:before{content:"\e94d"}.icon-os-plugin-report-stats:before{content:"\e94e"}.icon-os-plugin-report-time:before{content:"\e94f"}.icon-os-plugin-report-views:before{content:"\e950"}.icon-os-plugin-reports-emails:before{content:"\e951"}.icon-os-plugin-reports-polls:before{content:"\e952"}.icon-os-plugin-reports-revenue:before{content:"\e953"}.icon-os-plugin-reports-sets:before{content:"\e954"}.icon-os-plugin-reports-time:before{content:"\e955"}.icon-os-plugin-reports-traffic:before{content:"\e956"}.icon-os-plugin-reports-votes:before{content:"\e957"}.icon-os-plugin-set-arrow-left:before{content:"\e958"}.icon-os-plugin-set-arrow-right:before{content:"\e959"}.icon-os-plugin-sn-embed:before{content:"\e95a"}.icon-os-plugin-sn-facebook:before{content:"\e95b"}.icon-os-plugin-sn-gplus:before{content:"\e95c"}.icon-os-plugin-sn-tumblr:before{content:"\e95d"}.icon-os-plugin-sn-twitter:before{content:"\e95e"}.icon-os-plugin-status-closed:before{content:"\e95f"}.icon-os-plugin-status-draft:before{content:"\e960"}.icon-os-plugin-status-open:before{content:"\e961"}.icon-os-plugin-status-published:before{content:"\e962"}.icon-os-plugin-widget-form:before{content:"\e963"}.icon-os-icon-plugin-story:before{content:"\e964"}.opinionstage-button{border-radius:3px;display:inline-block;border-style:hidden;color:#fff;font-size:15px;font-weight:600;min-width:100px;padding:9px 10px;text-decoration:none;text-align:center;transition:0.2s ease;cursor:pointer}.opinionstage-button:hover{color:#fff}.opinionstage-button__pink{background-color:#F46368}.opinionstage-button__blue{background-color:#32adbc}.opinionstage-button__white{background-color:#fff;border:1px solid #DDDDDD;color:#32373c}.opinionstage-button__white:hover{color:#32373c}.opinionstage-button__uppercase{text-transform:uppercase}#opinionstage-content{height:auto;margin:0;min-height:100%;overflow:hidden;padding-top:20px;width:100%}#opinionstage-content .opinionstage-header-wrapper{background:#232121;overflow:hidden;position:relative}#opinionstage-content .opinionstage-logo-wrapper{padding:15.5px 30px;max-width:780px}#opinionstage-content .opinionstage-logo{background:url("../images/os-logo-header.png") no-repeat 0 0;background-size:100%;display:inline-block;height:26.7px;width:150px}#opinionstage-content .opinionstage-logo__dark{background:url("../images/logo-dark-font.svg") no-repeat 0 0;background-size:contain}#opinionstage-content .opinionstage-connect-form{display:inline-block}#opinionstage-content .opinionstage-blue-btn{background-color:#32adbc;border-radius:3px;border-style:hidden;color:#ffffff;display:inline-block;font-size:15px;font-weight:600;min-width:130px;padding:11px 10px;text-decoration:none;text-align:center;transition:0.2s ease;margin-right:0}#opinionstage-content .opinionstage-blue-btn:hover{background-color:#2f9fad}#opinionstage-content .opinionstage-blue-btn.border{background:#fff;color:#32adbc;border:1px solid #32adbc}#opinionstage-content .opinionstage-blue-btn.border:hover{background-color:rgba(49,174,190,0.1)}#opinionstage-content a.opinionstage-blue-bordered-btn{border:1px solid #32adbc;border-radius:2px;color:#32adbc;display:block;padding:10px 5px;text-align:center;text-decoration:none}#opinionstage-content .opinionstage-dashboard-right a.opinionstage-blue-bordered-btn{float:left;margin-right:5px}#opinionstage-content a.opinionstage-blue-bordered-btn.disabled{color:#cacac8;border:1px solid #cacac8}#opinionstage-content a.opinionstage-blue-bordered-btn.disabled:hover{background-color:#f9f9f9;color:#cacac8;cursor:default}#opinionstage-content .opinionstage-dashboard{background-color:#fff;margin-right:20px;min-height:800px;overflow:hidden}#opinionstage-content .opinionstage-dashboard-left{margin:30px}#opinionstage-content .opinionstage-dashboard-left .opinionstage-section-header .opinionstage-section-title{float:left;font-size:30px;padding:0;line-height:1}#opinionstage-content #opinionstage-section-create .opinionstage-section-content{height:435px;display:table;border-collapse:collapse;width:100%;max-width:960px}#opinionstage-content #opinionstage-section-create .opinionstage-section-raw{border:1px solid #c8c8c9;display:table-row;border-left:none;border-right:none}#opinionstage-content #opinionstage-section-create .opinionstage-section-cell{display:table-cell;padding:20px 0;vertical-align:middle}#opinionstage-content #opinionstage-section-create .opinionstage-section-cell.opinionstage-icon-cell{color:#3499c2;font-size:35px;text-align:center;width:7%}#opinionstage-content #opinionstage-section-create .opinionstage-section-cell.opinionstage-btn-cell{text-align:right;width:36%}#opinionstage-content #opinionstage-section-create .opinionstage-section-cell.opinionstage-btn-cell a:last-child{margin-right:0}#opinionstage-content #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell{width:57%}#opinionstage-content #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell .title{font-size:22px;font-weight:600;margin-bottom:5px;color:#3c434a;text-decoration:none}#opinionstage-content #opinionstage-section-create .opinionstage-section-cell.opinionstage-description-cell .example{color:#b1b1b1;font-size:14px;line-height:normal}#opinionstage-content #opinionstage-section-create .opinionstage-blue-btn{padding:12px 10px;text-transform:capitalize;min-width:150px}#opinionstage-content #opinionstage-section-create .opinionstage-blue-btn:not(:last-child){margin-right:10px}@media (max-width: 1230px){#opinionstage-content #opinionstage-section-create .opinionstage-blue-btn{display:block;width:auto}#opinionstage-content #opinionstage-section-create .opinionstage-blue-btn:not(:last-child){margin-right:0;margin-bottom:10px}}#opinionstage-content .opinionstage-help-row{border-bottom:1px solid #c8c8c9;margin:0 10px;padding:25px 0 25px 10px}#opinionstage-content .opinionstage-help-row:last-child{border-bottom:none}#opinionstage-content .content__list{overflow-y:visible;height:auto;min-height:calc(92vh - 160px)}#opinionstage-content .opinionstage-trusted{text-align:center;font-size:18px;line-height:50px;color:#85858A}#opinionstage-content .opinionstage-trusted span{color:#000}#opinionstage-content a.opinionstage-blue-bordered-btn :hover,.opinionstage-sidebar-widget a.opinionstage-blue-bordered-btn :hover{background-color:rgba(49,174,190,0.1)}#opinionstage-content a.opinionstage-blue-bordered-btn:focus,.opinionstage-sidebar-widget a.opinionstage-blue-bordered-btn:focus{box-shadow:none}p.failed-load-items-request{text-align:center;font-size:16px;padding:15px 0;max-width:1000px}.toplevel_page_opinionstage-getting-started{background:#F5F7FA}.toplevel_page_opinionstage-getting-started #wpcontent{padding-left:0}.opinionstage-getting-started-section{padding:25px;max-width:950px;color:#6E6E6E;margin-left:auto;margin-right:auto}@media (max-width: 1024px){.opinionstage-getting-started-section{margin-left:30px}}@media (max-width: 768px){.opinionstage-getting-started-section{margin-left:0}}.opinionstage-getting-started-section__no-padding{padding:0 !important}.opinionstage-getting-started-section .opinionstage-connect-form .opinionstage-button{font-weight:500;font-size:18px}.opinionstage-getting-started-section .opinionstage-logo{margin-left:25px;margin-top:25px}.opinionstage-getting-started-section .opinionstage-button{border-radius:0;margin-right:.5em;min-width:165px}.opinionstage-getting-started-section .opinionstage-clients{display:flex;justify-content:space-between}.opinionstage-getting-started-section .opinionstage-clients li{display:flex}.opinionstage-getting-started-section .opinionstage-clients img{margin-top:auto;margin-bottom:auto}.opinionstage-two-columns{color:#6E6E6E;display:flex;flex-wrap:wrap;padding-bottom:85px}@media (max-width: 768px){.opinionstage-two-columns{text-align:center}}.opinionstage-two-columns__title{font-size:30px;line-height:1.3;font-weight:600;margin-top:-5px}.opinionstage-two-columns__text{width:47%}@media (max-width: 768px){.opinionstage-two-columns__text{width:100%;margin-bottom:55px}}.opinionstage-two-columns__text p{color:#25282B;font-size:18px;margin-bottom:42px}.opinionstage-two-columns__img{padding-left:30px;width:53%;box-sizing:border-box}@media (max-width: 768px){.opinionstage-two-columns__img{width:100%}}.opinionstage-two-columns__img img{width:100%}.opinionstage-bg-white{background:#fff}.opinionstage-bg-blue{background-color:#F5F7FA}.opinionstage-getting-started-examples{margin-bottom:80px}.opinionstage-getting-started-examples__title{text-align:center;font-weight:600;font-size:26px;line-height:32px;margin-top:85px}@media (max-width: 500px){.opinionstage-getting-started-examples__title{text-align:left}}.opinionstage-getting-started-examples__items{display:flex;padding-top:25px;justify-content:space-between}@media (max-width: 500px){.opinionstage-getting-started-examples__items{flex-direction:column}}.opinionstage-getting-started-examples__item__title{font-size:14px;line-height:20px}.opinionstage-getting-started-examples__list{font-size:15px;line-height:30px}.opinionstage-getting-started-examples__list a{color:#25282B}.opinionstage-getting-started-video{display:flex;flex-direction:column}.opinionstage-getting-started-video .opinionstage-getting-started-examples__title{margin-top:75px}.opinionstage-getting-started-video__description{text-align:center;font-size:15px;line-height:20px}.opinionstage-getting-started-video iframe{margin-left:auto;margin-right:auto;border:20px solid #fff;margin-top:30px;box-shadow:5px 5px rgba(0,0,0,0.04)}.opinionstage-connect-form .opinionstage-button{min-height:50px}.opinionstage-connect-form__disconnect button[type=submit]{margin-bottom:0;min-height:auto}h1.gettingStartedHeading{font-size:30px;letter-spacing:1px;line-height:35px;margin:0 auto;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;width:100%}#opinionstage-content a.gettingStartedCreate.button{background:#3499c2;box-shadow:0 0 0 0;color:#ffffff;display:block;font-size:20px;height:auto;letter-spacing:1px;margin-top:20px;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;padding:11px 10px;width:100%}@media only screen and (max-width: 375px){#opinionstage-content .opinionstage-blue-btn{margin-left:30px;margin-top:15px}#opinionstage-content a.gettingStartedCreate.button{margin:20px auto 0 !important}.text-section-getting-stared-os p{text-align:left}}.opinionstage-dashboard-left .os_use_template_btn{margin:0;padding:12px 15px !important}td.long{padding-left:10px;width:48%}td.long>div{position:relative;width:90%;height:85px}td.long table{bottom:0;color:#b1b1b1;line-height:normal;position:absolute;width:100%}td.long table td{max-width:300px}td.long a{color:#212120;display:block;font-size:16px;font-weight:normal;line-height:normal;max-height:3.6em;max-width:100%;overflow:hidden;position:absolute;text-decoration:none;text-overflow:ellipsis;word-wrap:break-word;white-space:nowrap}td.action{width:30%}td.action a.opinionstage-blue-bordered-btn{font-size:15px;margin-right:9px}span.os-icon-plugin.icon-os-common-date{float:left;margin-right:4px}.label{line-height:15px}.content-item-label{background-color:#222120;color:#fff;font-size:12px;padding:2px 4px}a.opinionstage-blue-bordered-btn{float:left;margin-right:5px;border:1px solid #3aaebd;border-radius:3px;color:#3aaebd;display:block;font-size:14px;padding:10px 30px;text-align:center;text-decoration:none;text-transform:uppercase;transition:.2s ease}.content-item-label{background-color:#222120;color:white;font-size:12px;left:0;padding:1px 5px;position:absolute;text-transform:uppercase;top:0}.opinionstage-with-separator:before{content:"";margin:0 10px;height:100%;border-left:1px solid #b1b1b1}.opinionstage-section-header{font-size:23px;height:40px;overflow:visible}.opinionstage-anchors-list{position:absolute;z-index:10;top:100%;left:0;width:100%;background:white;border:1px solid #e5e5e5;opacity:0;visibility:hidden;transition:all .5s ease;margin-top:17px;margin-bottom:0}.opinionstage-anchors-list.opened{opacity:1;visibility:visible}.opinionstage-anchors-list a{width:100%}div#container .opinionstage-section-header{width:100%}.opinionstage-section-title{float:left;font-size:30px;padding:10px 0}.opinionstage-need-help-link{float:right !important}.opinionstage-section-header a{color:#32adbc;float:right;font-size:14px;font-weight:600;line-height:normal;margin:10px 25px;margin-right:0;text-decoration:none}.opinionstage-connectivity-status{color:#fff !important;float:right;font-size:15px;margin:5px 0}.opinionstage-disconnect{background-color:transparent;border:none;color:#32adbc !important;cursor:pointer}.opinionstage-disconnect:focus{border:none}.opinionstage-disconnect:focus{outline:0 none}.opinionstage-title{font-weight:bold}#overlay{background-color:#fdfdfdc7;display:block;height:100%;filter:alpha(opacity=70);opacity:0.7;position:absolute;width:100%;z-index:100;top:0}.opinionstage-item-view-dashboard{margin:30px;width:1000px}.opinionstage-header-inner-container{float:right}.opinionstage-header-inner-container .select-wrapper{padding:0 9px;display:inline-block}.opinionstage-header-inner-container .select-wrapper:last-child{padding-right:0}.opinionstage-header-inner-container .opinionstage-header-inner-section{border-right:1px solid #f3f3f3;float:left;padding-right:4px}.opinionstage-header-inner-section a,.os-long-text a{text-decoration:none}.search-container{background-color:transparent;display:inline-block;width:150px}.opinionstage-section-header #itemList{font-size:12px;font-weight:bold;height:auto;padding:10px;width:100%}.opinionstage-section-header #opinionstage-my-items-search-field{color:#797979;height:auto;padding:8.5px 10px;width:100%}.opinionstage-item-action-container{float:right}.opinionstage-item-action-container .opinionstage-edit-content{padding:13px 17px !important}div#opinionstage-load-more{background-color:#f1f1f1;border-color:#f1f1f1;color:#444;margin:0}.opinionstage-item-view-dashboard #opinionstage-items-table{width:100%}.opinionstage-item-view-dashboard #opinionstage-items-table div.label{font-size:13px}#opinionstage-content .opinionstage-item-view-dashboard .opinionstage-dashboard-section{margin-bottom:5px}#opinionistage-my-items-page-modal-wrapper{display:none;position:fixed;height:100%;width:100%;bottom:0;left:0;border-radius:6px / 6px;background-color:rgba(0,0,0,0.8);z-index:9999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#opinionistage-my-items-page-modal-wrapper .inner{background:#f5f5f5;padding:1px 15px 10px 15px;margin-top:20px}#opinionistage-my-items-page-modal-wrapper .opinionistage-my-items-page-modal{background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:6px;overflow:hidden;width:650px;padding:25px 35px;font-size:16px}#opinionistage-my-items-page-modal-wrapper .opinionistage-my-items-page-modal a{color:#32adbc}#opinionistage-my-items-page-modal-wrapper .opinionistage-my-items-page-modal a:focus{outline:none;box-shadow:none}#opinionistage-my-items-page-modal-wrapper .opinionistage-my-items-page-modal a.no-text-decoration{text-decoration:none}#opinionistage-my-items-page-modal-wrapper .opinionistage-my-items-page-modal p{font-size:16px}#opinionistage-my-items-page-modal-wrapper .opinionstage-textarea-wrapper{display:flex;align-items:center}#opinionistage-my-items-page-modal-wrapper .opinionstage-textarea-wrapper textarea{resize:none;margin:10px 10px 10px 0;padding:10px;width:500px;border-radius:0 0 3px 3px;border:1px solid #3aaebd;background:#fff}#opinionistage-my-items-page-modal-wrapper .opinionstage-textarea-wrapper textarea:focus{box-shadow:none}#opinionistage-my-items-page-modal-wrapper .opinionstage-close{position:absolute;right:16px;top:12px;width:20px;height:20px;cursor:pointer}#opinionistage-my-items-page-modal-wrapper .opinionstage-close:before,#opinionistage-my-items-page-modal-wrapper .opinionstage-close:after{position:absolute;left:15px;content:' ';height:17px;width:2px;background-color:#b1b1b1}#opinionistage-my-items-page-modal-wrapper .opinionstage-close:after{transform:rotate(-45deg)}#opinionistage-my-items-page-modal-wrapper .opinionstage-close:before{transform:rotate(45deg)}#opinionistage-my-items-page-modal-wrapper ul{margin-left:17px;list-style:disc}#opinionistage-my-items-page-modal-wrapper ul li{margin-bottom:15px}.toplevel_page_opinionstage-settings .selected-draft__container{position:fixed !important}@media only screen and (max-width: 1230px){#opinionstage-content .opinionstage-dashboard-left,#opinionstage-content .opinionstage-dashboard-right{float:none;width:auto}#opinionstage-content .opinionstage-dashboard{overflow-y:scroll}#opinionstage-content .opinionstage-item-view-dashboard .opinionstage-section-header .opinionstage-section-title{padding:25px 0}#opinionstage-content .opinionstage-item-view-dashboard .opinionstage-dashboard-section .opinionstage-section-header{height:95px}#opinionstage-content .opinionstage-dashboard-section .opinionstage-section-header .opinionstage-header-inner-section a{display:block;float:none}.opinionstage-create-btn{margin-bottom:10px;margin-right:0}.opinionstage-item-action-container{float:none}#opinionstage-items-table .action .opinionstage-item-action-container a{display:block;float:none;margin-bottom:10px;width:80%}.opinionstage-item-view-dashboard{width:auto}}.opinionstage-no-items{font-weight:600;font-size:15px;color:#212120}a.opinionstage-add-our-first-item{font-weight:600;font-size:15px;color:#3499c2}#opinionstage-content .opinionstage-tutorials-and-help__hero{padding:60px 0 100px 0}@media (max-width: 720px){#opinionstage-content .opinionstage-tutorials-and-help__hero{padding-bottom:0;background-color:#fff}}#opinionstage-content .opinionstage-tutorials-and-help__hero__header{font-size:40px;line-height:54px;color:#25282B;text-align:center;margin:0}#opinionstage-content .opinionstage-tutorials-and-help__buttons{margin-top:60px;text-align:center}#opinionstage-content .opinionstage-tutorials-and-help__button{font-size:14px;font-weight:300;padding:16px 30px 16px 50px;border-radius:0;display:inline-block;position:relative;box-sizing:border-box}#opinionstage-content .opinionstage-tutorials-and-help__button:nth-child(2n){margin:0 20px}@media (max-width: 720px){#opinionstage-content .opinionstage-tutorials-and-help__button{width:100%;margin:10px 0 0 0 !important;text-align:left;padding-left:60px}}#opinionstage-content .opinionstage-tutorials-and-help__button svg{position:absolute;left:15px;top:50%;transform:translateY(-50%)}#opinionstage-content .opinionstage-tutorials-and-help__container{max-width:720px;margin-left:auto;margin-right:auto}@media (max-width: 720px){#opinionstage-content .opinionstage-tutorials-and-help__container{padding-right:20px}}#opinionstage-content .opinionstage-tutorials-and-help__videos{margin-top:20px}#opinionstage-content .opinionstage-tutorials-and-help__video{text-align:center}#opinionstage-content .opinionstage-tutorials-and-help__video__title{font-size:26px;line-height:35px;text-align:center;margin-top:80px;font-weight:400}#opinionstage-content .opinionstage-tutorials-and-help__video__title__link{-webkit-text-decoration-color:#25282B;text-decoration-color:#25282B}@media (max-width: 720px){#opinionstage-content .opinionstage-tutorials-and-help__video__title{margin-top:40px;margin-bottom:30px;font-size:16px;line-height:22px}}body.opinion-stage_page_opinionstage-help-resource{background-color:#fff}body.opinion-stage_page_opinionstage-help-resource .opinionstage-logo-wrapper{max-width:1000px !important;margin-left:auto;margin-right:auto;padding-right:0 !important;padding-left:0 !important}
|
admin/js/content-popup.js
CHANGED
@@ -17,4 +17,4 @@ function i(t,e){for(var n=0,o=t.length;n<o;n++)if(t[n]===e)return n;return-1}fun
|
|
17 |
*/
|
18 |
var S=function(t){function e(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:e});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,n.call(this,t)}}},O="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,T=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},M={namespaced:{configurable:!0}};M.namespaced.get=function(){return!!this._rawModule.namespaced},T.prototype.addChild=function(t,e){this._children[t]=e},T.prototype.removeChild=function(t){delete this._children[t]},T.prototype.getChild=function(t){return this._children[t]},T.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},T.prototype.forEachChild=function(t){r(this._children,t)},T.prototype.forEachGetter=function(t){this._rawModule.getters&&r(this._rawModule.getters,t)},T.prototype.forEachAction=function(t){this._rawModule.actions&&r(this._rawModule.actions,t)},T.prototype.forEachMutation=function(t){this._rawModule.mutations&&r(this._rawModule.mutations,t)},Object.defineProperties(T.prototype,M);var C=function(t){this.register([],t,!1)};C.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},C.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},C.prototype.update=function(t){s([],this.root,t)},C.prototype.register=function(t,e,n){var o=this;void 0===n&&(n=!0);var i=new T(e,n);if(0===t.length)this.root=i;else{this.get(t.slice(0,-1)).addChild(t[t.length-1],i)}e.modules&&r(e.modules,function(e,r){o.register(t.concat(r),e,n)})},C.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var D,A=function(t){var e=this;void 0===t&&(t={}),!D&&"undefined"!=typeof window&&window.Vue&&b(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1);var i=t.state;void 0===i&&(i={}),"function"==typeof i&&(i=i()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new C(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new D;var a=this,s=this,c=s.dispatch,u=s.commit;this.dispatch=function(t,e){return c.call(a,t,e)},this.commit=function(t,e,n){return u.call(a,t,e,n)},this.strict=r,f(this,i,[],this._modules.root),l(this,i),n.forEach(function(t){return t(e)}),D.config.devtools&&o(this)},$={state:{configurable:!0}};$.state.get=function(){return this._vm._data.$$state},$.state.set=function(t){},A.prototype.commit=function(t,e,n){var o=this,r=_(t,e,n),i=r.type,a=r.payload,s=(r.options,{type:i,payload:a}),c=this._mutations[i];c&&(this._withCommit(function(){c.forEach(function(t){t(a)})}),this._subscribers.forEach(function(t){return t(s,o.state)}))},A.prototype.dispatch=function(t,e){var n=this,o=_(t,e),r=o.type,i=o.payload,a={type:r,payload:i},s=this._actions[r];if(s)return this._actionSubscribers.forEach(function(t){return t(a,n.state)}),s.length>1?Promise.all(s.map(function(t){return t(i)})):s[0](i)},A.prototype.subscribe=function(t){return c(t,this._subscribers)},A.prototype.subscribeAction=function(t){return c(t,this._actionSubscribers)},A.prototype.watch=function(t,e,n){var o=this;return this._watcherVM.$watch(function(){return t(o.state,o.getters)},e,n)},A.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},A.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),f(this,this.state,t,this._modules.get(t),n.preserveState),l(this,this.state)},A.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=y(e.state,t.slice(0,-1));D.delete(n,t[t.length-1])}),u(this)},A.prototype.hotUpdate=function(t){this._modules.update(t),u(this,!0)},A.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(A.prototype,$);var E=x(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,r=e.val;n[o]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var o=k(this.$store,"mapState",t);if(!o)return;e=o.context.state,n=o.context.getters}return"function"==typeof r?r.call(this,e,n):e[r]},n[o].vuex=!0}),n}),j=x(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,r=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.commit;if(t){var i=k(this.$store,"mapMutations",t);if(!i)return;o=i.context.commit}return"function"==typeof r?r.apply(this,[o].concat(e)):o.apply(this.$store,[r].concat(e))}}),n}),L=x(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,r=e.val;r=t+r,n[o]=function(){if(!t||k(this.$store,"mapGetters",t))return this.$store.getters[r]},n[o].vuex=!0}),n}),P=x(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,r=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.dispatch;if(t){var i=k(this.$store,"mapActions",t);if(!i)return;o=i.context.dispatch}return"function"==typeof r?r.apply(this,[o].concat(e)):o.apply(this.$store,[r].concat(e))}}),n}),I=function(t){return{mapState:E.bind(null,t),mapGetters:L.bind(null,t),mapMutations:j.bind(null,t),mapActions:P.bind(null,t)}},Y={Store:A,install:b,version:"2.5.0",mapState:E,mapMutations:j,mapGetters:L,mapActions:P,createNamespacedHelpers:I};e.default=Y},function(t,e,n){(function(e){function n(t){return t.split("")}function o(t,e,n,o){for(var r=t.length,i=n+(o?1:-1);o?i--:++i<r;)if(e(t[i],i,t))return i;return-1}function r(t,e,n){if(e!==e)return o(t,i,n);for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}function i(t){return t!==t}function a(t,e){for(var n=-1,o=t.length;++n<o&&r(e,t[n],0)>-1;);return n}function s(t,e){for(var n=t.length;n--&&r(e,t[n],0)>-1;);return n}function c(t){return A.test(t)}function u(t){return c(t)?l(t):n(t)}function l(t){return t.match(D)||[]}function f(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),n=n>r?r:n,n<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++o<r;)i[o]=t[o+e];return i}function d(t){if("string"==typeof t)return t;if(m(t))return N?N.call(t):"";var e=t+"";return"0"==e&&1/t==-y?"-0":e}function p(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:f(t,e,n)}function h(t){return!!t&&"object"==typeof t}function m(t){return"symbol"==typeof t||h(t)&&P.call(t)==_}function v(t){return null==t?"":d(t)}function g(t,e,n){if((t=v(t))&&(n||void 0===e))return t.replace(b,"");if(!t||!(e=d(e)))return t;var o=u(t),r=u(e);return p(o,a(o,r),s(o,r)+1).join("")}var y=1/0,_="[object Symbol]",b=/^\s+|\s+$/g,w="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",x="\\ud83c[\\udffb-\\udfff]",k="(?:\\ud83c[\\udde6-\\uddff]){2}",S="[\\ud800-\\udbff][\\udc00-\\udfff]",O="(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?",T="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",k,S].join("|")+")[\\ufe0e\\ufe0f]?"+O+")*",M="[\\ufe0e\\ufe0f]?"+O+T,C="(?:"+["[^\\ud800-\\udfff]"+w+"?",w,k,S,"[\\ud800-\\udfff]"].join("|")+")",D=RegExp(x+"(?="+x+")|"+C+M,"g"),A=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),$="object"==typeof e&&e&&e.Object===Object&&e,E="object"==typeof self&&self&&self.Object===Object&&self,j=$||E||Function("return this")(),L=Object.prototype,P=L.toString,I=j.Symbol,Y=I?I.prototype:void 0,N=Y?Y.toString:void 0;t.exports=g}).call(e,n(0))},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(){this.$emit("widgets-search-update",{widgetType:this.selectedWidgetType,widgetTitle:this.widgetTitleSearch})}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),a=o(i),s=n(27),c=o(s),u=n(2);a.default.use(n(28));var l={};l[u.WIDGET_ALL]="All ITEMS",l[u.WIDGET_POLL]="poll",l[u.WIDGET_SET]="multi poll set",l[u.WIDGET_SURVEY]="survey",l[u.WIDGET_SLIDESHOW]="slideshow",l[u.WIDGET_TRIVIA_QUIZ]="trivia quiz",l[u.WIDGET_PERSONALITY_QUIZ]="personality quiz",l[u.WIDGET_LIST]="list",l[u.WIDGET_FORM]="standard form",l[u.WIDGET_STORY]="story article",e.default=a.default.component("widget-list",{template:"#opinionstage-widget-list",props:["widgets","preSelectedWidgetType","dataLoading","noMoreData","showSearch"],data:function(){return{selectedWidgetType:null,widgetTitleSearch:"",showMoreBtn:!0,hasData:!0,selectedDraftWidget:{}}},computed:{selectedWidgetTitle:function(){return l[this.selectedWidgetType||this.preSelectedWidgetType]}},watch:{widgetTitleSearch:(0,c.default)(function(){r.call(this)},500),widgets:function(){this.hasData=this.dataLoading||this.widgets.length>0}},methods:{select:function(t){t.isDraft?this.selectedDraftWidget=t:this.$emit("widget-selected",t)},selectWidgetType:function(t){this.selectedWidgetType=t,this.widgetTitleSearch="",r.call(this)},showMore:function(){this.$emit("load-more-widgets")}}})},function(t,e,n){(function(e){function n(t,e,n){function r(e){var n=m,o=v;return m=v=void 0,S=e,y=t.apply(o,n)}function i(t){return S=t,_=setTimeout(l,e),O?r(t):y}function c(t){var n=t-k,o=t-S,r=e-n;return T?w(r,g-o):r}function u(t){var n=t-k,o=t-S;return void 0===k||n>=e||n<0||T&&o>=g}function l(){var t=x();if(u(t))return f(t);_=setTimeout(l,c(t))}function f(t){return _=void 0,M&&m?r(t):(m=v=void 0,y)}function d(){void 0!==_&&clearTimeout(_),S=0,m=k=v=_=void 0}function p(){return void 0===_?y:f(x())}function h(){var t=x(),n=u(t);if(m=arguments,v=this,k=t,n){if(void 0===_)return i(k);if(T)return _=setTimeout(l,e),r(k)}return void 0===_&&(_=setTimeout(l,e)),y}var m,v,g,y,_,k,S=0,O=!1,T=!1,M=!0;if("function"!=typeof t)throw new TypeError(s);return e=a(e)||0,o(n)&&(O=!!n.leading,T="maxWait"in n,g=T?b(a(n.maxWait)||0,e):g,M="trailing"in n?!!n.trailing:M),h.cancel=d,h.flush=p,h}function o(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function r(t){return!!t&&"object"==typeof t}function i(t){return"symbol"==typeof t||r(t)&&_.call(t)==u}function a(t){if("number"==typeof t)return t;if(i(t))return c;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(l,"");var n=d.test(t);return n||p.test(t)?h(t.slice(2),n?2:8):f.test(t)?c:+t}var s="Expected a function",c=NaN,u="[object Symbol]",l=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,h=parseInt,m="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,g=m||v||Function("return this")(),y=Object.prototype,_=y.toString,b=Math.max,w=Math.min,x=function(){return g.Date.now()};t.exports=n}).call(e,n(0))},function(t,e,n){(function(t){!function(t,n){n(e)}(0,function(e){"use strict";function n(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var r="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},i=function(t,e){return e={exports:{}},t(e,e.exports),e.exports}(function(t,e){var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};
|
19 |
//! moment.js
|
20 |
-
!function(n,r){"object"===o(e)?t.exports=r():n.moment=r()}(r,function(){function e(){return Lo.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function i(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function s(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var n,o=[];for(n=0;n<t.length;++n)o.push(e(t[n],n));return o}function f(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){for(var n in e)f(e,n)&&(t[n]=e[n]);return f(e,"toString")&&(t.toString=e.toString),f(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,o){return Me(t,e,n,o,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(t){return null==t._pf&&(t._pf=h()),t._pf}function v(t){if(null==t._isValid){var e=m(t),n=Po.call(e.parsedDateParts,function(t){return null!=t}),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return o;t._isValid=o}return t._isValid}function g(t){var e=p(NaN);return null!=t?d(m(e),t):m(e).userInvalidated=!0,e}function y(t,e){var n,o,r;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=m(e)),s(e._locale)||(t._locale=e._locale),Io.length>0)for(n=0;n<Io.length;n++)o=Io[n],r=e[o],s(r)||(t[o]=r);return t}function _(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Yo&&(Yo=!0,e.updateOffset(this),Yo=!1)}function b(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function w(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function x(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=w(e)),n}function k(t,e,n){var o,r=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),a=0;for(o=0;o<r;o++)(n&&t[o]!==e[o]||!n&&x(t[o])!==x(e[o]))&&a++;return a+i}function S(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function O(t,n){var r=!0;return d(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),r){for(var i,a=[],s=0;s<arguments.length;s++){if(i="","object"===o(arguments[s])){i+="\n["+s+"] ";for(var c in arguments[0])i+=c+": "+arguments[0][c]+", ";i=i.slice(0,-2)}else i=arguments[s];a.push(i)}S(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function T(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),No[t]||(S(n),No[t]=!0)}function M(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t){var e,n;for(n in t)e=t[n],M(e)?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function D(t,e){var n,o=d({},t);for(n in e)f(e,n)&&(i(t[n])&&i(e[n])?(o[n]={},d(o[n],t[n]),d(o[n],e[n])):null!=e[n]?o[n]=e[n]:delete o[n]);for(n in t)f(t,n)&&!f(e,n)&&i(t[n])&&(o[n]=d({},o[n]));return o}function A(t){null!=t&&this.set(t)}function $(t,e,n){var o=this._calendar[t]||this._calendar.sameElse;return M(o)?o.call(e,n):o}function E(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function j(){return this._invalidDate}function L(t){return this._ordinal.replace("%d",t)}function P(t,e,n,o){var r=this._relativeTime[n];return M(r)?r(t,e,n,o):r.replace(/%d/i,t)}function I(t,e){var n=this._relativeTime[t>0?"future":"past"];return M(n)?n(e):n.replace(/%s/i,e)}function Y(t,e){var n=t.toLowerCase();Go[n]=Go[n+"s"]=Go[e]=t}function N(t){return"string"==typeof t?Go[t]||Go[t.toLowerCase()]:void 0}function W(t){var e,n,o={};for(n in t)f(t,n)&&(e=N(n))&&(o[e]=t[n]);return o}function R(t,e){Vo[t]=e}function F(t){var e=[];for(var n in t)e.push({unit:n,priority:Vo[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function U(t,e,n){var o=""+Math.abs(t),r=e-o.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}function H(t,e,n,o){var r=o;"string"==typeof o&&(r=function(){return this[o]()}),t&&(qo[t]=r),e&&(qo[e[0]]=function(){return U(r.apply(this,arguments),e[1],e[2])}),n&&(qo[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function G(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function V(t){var e,n,o=t.match(Bo);for(e=0,n=o.length;e<n;e++)qo[o[e]]?o[e]=qo[o[e]]:o[e]=G(o[e]);return function(e){var r,i="";for(r=0;r<n;r++)i+=M(o[r])?o[r].call(e,t):o[r];return i}}function B(t,e){return t.isValid()?(e=z(e,t.localeData()),Zo[e]=Zo[e]||V(e),Zo[e](t)):t.localeData().invalidDate()}function z(t,e){function n(t){return e.longDateFormat(t)||t}var o=5;for(zo.lastIndex=0;o>=0&&zo.test(t);)t=t.replace(zo,n),zo.lastIndex=0,o-=1;return t}function Z(t,e,n){pr[t]=M(e)?e:function(t,o){return t&&n?n:e}}function q(t,e){return f(pr,t)?pr[t](e._strict,e._locale):new RegExp(J(t))}function J(t){return K(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,o,r){return e||n||o||r}))}function K(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(t,e){var n,o=e;for("string"==typeof t&&(t=[t]),c(e)&&(o=function(t,n){n[e]=x(t)}),n=0;n<t.length;n++)hr[t[n]]=o}function X(t,e){Q(t,function(t,n,o,r){o._w=o._w||{},e(t,o._w,o,r)})}function tt(t,e,n){null!=e&&f(hr,t)&&hr[t](e,n._a,n,t)}function et(t){return nt(t)?366:365}function nt(t){return t%4==0&&t%100!=0||t%400==0}function ot(){return nt(this.year())}function rt(t,n){return function(o){return null!=o?(at(this,t,o),e.updateOffset(this,n),this):it(this,t)}}function it(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function at(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&nt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),lt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function st(t){return t=N(t),M(this[t])?this[t]():this}function ct(t,e){if("object"===(void 0===t?"undefined":o(t))){t=W(t);for(var n=F(t),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit])}else if(t=N(t),M(this[t]))return this[t](e);return this}function ut(t,e){return(t%e+e)%e}function lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=ut(e,12);return t+=(e-n)/12,1===n?nt(t)?29:28:31-n%7%2}function ft(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Tr).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone}function dt(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Tr.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function pt(t,e,n){var o,r,i,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=p([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===e?(r=Sr.call(this._shortMonthsParse,a),-1!==r?r:null):(r=Sr.call(this._longMonthsParse,a),-1!==r?r:null):"MMM"===e?-1!==(r=Sr.call(this._shortMonthsParse,a))?r:(r=Sr.call(this._longMonthsParse,a),-1!==r?r:null):-1!==(r=Sr.call(this._longMonthsParse,a))?r:(r=Sr.call(this._shortMonthsParse,a),-1!==r?r:null)}function ht(t,e,n){var o,r,i;if(this._monthsParseExact)return pt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=p([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[o].test(t))return o;if(n&&"MMM"===e&&this._shortMonthsParse[o].test(t))return o;if(!n&&this._monthsParse[o].test(t))return o}}function mt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=x(e);else if(e=t.localeData().monthsParse(e),!c(e))return t;return n=Math.min(t.date(),lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function vt(t){return null!=t?(mt(this,t),e.updateOffset(this,!0),this):it(this,"Month")}function gt(){return lt(this.year(),this.month())}function yt(t){return this._monthsParseExact?(f(this,"_monthsRegex")||bt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Dr),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function _t(t){return this._monthsParseExact?(f(this,"_monthsRegex")||bt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Ar),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function bt(){function t(t,e){return e.length-t.length}var e,n,o=[],r=[],i=[];for(e=0;e<12;e++)n=p([2e3,e]),o.push(this.monthsShort(n,"")),r.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(o.sort(t),r.sort(t),i.sort(t),e=0;e<12;e++)o[e]=K(o[e]),r[e]=K(r[e]);for(e=0;e<24;e++)i[e]=K(i[e]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function wt(t,e,n,o,r,i,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,o,r,i,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,o,r,i,a),s}function xt(t){var e;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function kt(t,e,n){var o=7+e-n;return-(7+xt(t,0,o).getUTCDay()-e)%7+o-1}function St(t,e,n,o,r){var i,a,s=(7+n-o)%7,c=kt(t,o,r),u=1+7*(e-1)+s+c;return u<=0?(i=t-1,a=et(i)+u):u>et(t)?(i=t+1,a=u-et(t)):(i=t,a=u),{year:i,dayOfYear:a}}function Ot(t,e,n){var o,r,i=kt(t.year(),e,n),a=Math.floor((t.dayOfYear()-i-1)/7)+1;return a<1?(r=t.year()-1,o=a+Tt(r,e,n)):a>Tt(t.year(),e,n)?(o=a-Tt(t.year(),e,n),r=t.year()+1):(r=t.year(),o=a),{week:o,year:r}}function Tt(t,e,n){var o=kt(t,e,n),r=kt(t+1,e,n);return(et(t)-o+r)/7}function Mt(t){return Ot(t,this._week.dow,this._week.doy).week}function Ct(){return this._week.dow}function Dt(){return this._week.doy}function At(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function $t(t){var e=Ot(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Et(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function jt(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Lt(t,e){return t.slice(e,7).concat(t.slice(0,e))}function Pt(t,e){var n=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Lt(n,this._week.dow):t?n[t.day()]:n}function It(t){return!0===t?Lt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Yt(t){return!0===t?Lt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Nt(t,e,n){var o,r,i,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=p([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===e?(r=Sr.call(this._weekdaysParse,a),-1!==r?r:null):"ddd"===e?(r=Sr.call(this._shortWeekdaysParse,a),-1!==r?r:null):(r=Sr.call(this._minWeekdaysParse,a),-1!==r?r:null):"dddd"===e?-1!==(r=Sr.call(this._weekdaysParse,a))?r:-1!==(r=Sr.call(this._shortWeekdaysParse,a))?r:(r=Sr.call(this._minWeekdaysParse,a),-1!==r?r:null):"ddd"===e?-1!==(r=Sr.call(this._shortWeekdaysParse,a))?r:-1!==(r=Sr.call(this._weekdaysParse,a))?r:(r=Sr.call(this._minWeekdaysParse,a),-1!==r?r:null):-1!==(r=Sr.call(this._minWeekdaysParse,a))?r:-1!==(r=Sr.call(this._weekdaysParse,a))?r:(r=Sr.call(this._shortWeekdaysParse,a),-1!==r?r:null)}function Wt(t,e,n){var o,r,i;if(this._weekdaysParseExact)return Nt.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=p([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[o].test(t))return o;if(n&&"ddd"===e&&this._shortWeekdaysParse[o].test(t))return o;if(n&&"dd"===e&&this._minWeekdaysParse[o].test(t))return o;if(!n&&this._weekdaysParse[o].test(t))return o}}function Rt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Et(t,this.localeData()),this.add(t-e,"d")):e}function Ft(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ut(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=jt(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ht(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Pr),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gt(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ir),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Vt(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Yr),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Bt(){function t(t,e){return e.length-t.length}var e,n,o,r,i,a=[],s=[],c=[],u=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(o),s.push(r),c.push(i),u.push(o),u.push(r),u.push(i);for(a.sort(t),s.sort(t),c.sort(t),u.sort(t),e=0;e<7;e++)s[e]=K(s[e]),c[e]=K(c[e]),u[e]=K(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function zt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function qt(t,e){H(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Jt(t,e){return e._meridiemParse}function Kt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Qt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Xt(t){return t?t.toLowerCase().replace("_","-"):t}function te(t){for(var e,n,o,r,i=0;i<t.length;){for(r=Xt(t[i]).split("-"),e=r.length,n=Xt(t[i+1]),n=n?n.split("-"):null;e>0;){if(o=ee(r.slice(0,e).join("-")))return o;if(n&&n.length>=e&&k(r,n,!0)>=e-1)break;e--}i++}return Nr}function ee(e){var o=null;if(!Ur[e]&&t&&t.exports)try{o=Nr._abbr;n("./locale/"+e),ne(o)}catch(t){}return Ur[e]}function ne(t,e){var n;return t&&(n=s(e)?ie(t):oe(t,e),n?Nr=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Nr._abbr}function oe(t,e){if(null!==e){var n,o=Fr;if(e.abbr=t,null!=Ur[t])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=Ur[t]._config;else if(null!=e.parentLocale)if(null!=Ur[e.parentLocale])o=Ur[e.parentLocale]._config;else{if(null==(n=ee(e.parentLocale)))return Hr[e.parentLocale]||(Hr[e.parentLocale]=[]),Hr[e.parentLocale].push({name:t,config:e}),null;o=n._config}return Ur[t]=new A(D(o,e)),Hr[t]&&Hr[t].forEach(function(t){oe(t.name,t.config)}),ne(t),Ur[t]}return delete Ur[t],null}function re(t,e){if(null!=e){var n,o,r=Fr;o=ee(t),null!=o&&(r=o._config),e=D(r,e),n=new A(e),n.parentLocale=Ur[t],Ur[t]=n,ne(t)}else null!=Ur[t]&&(null!=Ur[t].parentLocale?Ur[t]=Ur[t].parentLocale:null!=Ur[t]&&delete Ur[t]);return Ur[t]}function ie(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Nr;if(!r(t)){if(e=ee(t))return e;t=[t]}return te(t)}function ae(){return Wo(Ur)}function se(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[vr]<0||n[vr]>11?vr:n[gr]<1||n[gr]>lt(n[mr],n[vr])?gr:n[yr]<0||n[yr]>24||24===n[yr]&&(0!==n[_r]||0!==n[br]||0!==n[wr])?yr:n[_r]<0||n[_r]>59?_r:n[br]<0||n[br]>59?br:n[wr]<0||n[wr]>999?wr:-1,m(t)._overflowDayOfYear&&(e<mr||e>gr)&&(e=gr),m(t)._overflowWeeks&&-1===e&&(e=xr),m(t)._overflowWeekday&&-1===e&&(e=kr),m(t).overflow=e),t}function ce(t,e,n){return null!=t?t:null!=e?e:n}function ue(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function le(t){var e,n,o,r,i,a=[];if(!t._d){for(o=ue(t),t._w&&null==t._a[gr]&&null==t._a[vr]&&fe(t),null!=t._dayOfYear&&(i=ce(t._a[mr],o[mr]),(t._dayOfYear>et(i)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=xt(i,0,t._dayOfYear),t._a[vr]=n.getUTCMonth(),t._a[gr]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=o[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[yr]&&0===t._a[_r]&&0===t._a[br]&&0===t._a[wr]&&(t._nextDay=!0,t._a[yr]=0),t._d=(t._useUTC?xt:wt).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[yr]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(m(t).weekdayMismatch=!0)}}function fe(t){var e,n,o,r,i,a,s,c;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)i=1,a=4,n=ce(e.GG,t._a[mr],Ot(Ce(),1,4).year),o=ce(e.W,1),((r=ce(e.E,1))<1||r>7)&&(c=!0);else{i=t._locale._week.dow,a=t._locale._week.doy;var u=Ot(Ce(),i,a);n=ce(e.gg,t._a[mr],u.year),o=ce(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(c=!0):null!=e.e?(r=e.e+i,(e.e<0||e.e>6)&&(c=!0)):r=i}o<1||o>Tt(n,i,a)?m(t)._overflowWeeks=!0:null!=c?m(t)._overflowWeekday=!0:(s=St(n,o,r,i,a),t._a[mr]=s.year,t._dayOfYear=s.dayOfYear)}function de(t){var e,n,o,r,i,a,s=t._i,c=Gr.exec(s)||Vr.exec(s);if(c){for(m(t).iso=!0,e=0,n=zr.length;e<n;e++)if(zr[e][1].exec(c[1])){r=zr[e][0],o=!1!==zr[e][2];break}if(null==r)return void(t._isValid=!1);if(c[3]){for(e=0,n=Zr.length;e<n;e++)if(Zr[e][1].exec(c[3])){i=(c[2]||" ")+Zr[e][0];break}if(null==i)return void(t._isValid=!1)}if(!o&&null!=i)return void(t._isValid=!1);if(c[4]){if(!Br.exec(c[4]))return void(t._isValid=!1);a="Z"}t._f=r+(i||"")+(a||""),be(t)}else t._isValid=!1}function pe(t,e,n,o,r,i){var a=[he(t),Cr.indexOf(e),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function he(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function me(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ve(t,e,n){if(t){if(jr.indexOf(t)!==new Date(e[0],e[1],e[2]).getDay())return m(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function ge(t,e,n){if(t)return Kr[t];if(e)return 0;var o=parseInt(n,10),r=o%100;return(o-r)/100*60+r}function ye(t){var e=Jr.exec(me(t._i));if(e){var n=pe(e[4],e[3],e[2],e[5],e[6],e[7]);if(!ve(e[1],n,t))return;t._a=n,t._tzm=ge(e[8],e[9],e[10]),t._d=xt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function _e(t){var n=qr.exec(t._i);if(null!==n)return void(t._d=new Date(+n[1]));de(t),!1===t._isValid&&(delete t._isValid,ye(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function be(t){if(t._f===e.ISO_8601)return void de(t);if(t._f===e.RFC_2822)return void ye(t);t._a=[],m(t).empty=!0;var n,o,r,i,a,s=""+t._i,c=s.length,u=0;for(r=z(t._f,t._locale).match(Bo)||[],n=0;n<r.length;n++)i=r[n],o=(s.match(q(i,t))||[])[0],o&&(a=s.substr(0,s.indexOf(o)),a.length>0&&m(t).unusedInput.push(a),s=s.slice(s.indexOf(o)+o.length),u+=o.length),qo[i]?(o?m(t).empty=!1:m(t).unusedTokens.push(i),tt(i,o,t)):t._strict&&!o&&m(t).unusedTokens.push(i);m(t).charsLeftOver=c-u,s.length>0&&m(t).unusedInput.push(s),t._a[yr]<=12&&!0===m(t).bigHour&&t._a[yr]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[yr]=we(t._locale,t._a[yr],t._meridiem),le(t),se(t)}function we(t,e,n){var o;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(o=t.isPM(n),o&&e<12&&(e+=12),o||12!==e||(e=0),e):e}function xe(t){var e,n,o,r,i;if(0===t._f.length)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)i=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],be(e),v(e)&&(i+=m(e).charsLeftOver,i+=10*m(e).unusedTokens.length,m(e).score=i,(null==o||i<o)&&(o=i,n=e));d(t,n||e)}function ke(t){if(!t._d){var e=W(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),le(t)}}function Se(t){var e=new _(se(Oe(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Oe(t){var e=t._i,n=t._f;return t._locale=t._locale||ie(t._l),null===e||void 0===n&&""===e?g({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),b(e)?new _(se(e)):(u(e)?t._d=e:r(n)?xe(t):n?be(t):Te(t),v(t)||(t._d=null),t))}function Te(t){var n=t._i;s(n)?t._d=new Date(e.now()):u(n)?t._d=new Date(n.valueOf()):"string"==typeof n?_e(t):r(n)?(t._a=l(n.slice(0),function(t){return parseInt(t,10)}),le(t)):i(n)?ke(t):c(n)?t._d=new Date(n):e.createFromInputFallback(t)}function Me(t,e,n,o,s){var c={};return!0!==n&&!1!==n||(o=n,n=void 0),(i(t)&&a(t)||r(t)&&0===t.length)&&(t=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=s,c._l=n,c._i=t,c._f=e,c._strict=o,Se(c)}function Ce(t,e,n,o){return Me(t,e,n,o,!1)}function De(t,e){var n,o;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Ce();for(n=e[0],o=1;o<e.length;++o)e[o].isValid()&&!e[o][t](n)||(n=e[o]);return n}function Ae(){return De("isBefore",[].slice.call(arguments,0))}function $e(){return De("isAfter",[].slice.call(arguments,0))}function Ee(t){for(var e in t)if(-1===Sr.call(ei,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,o=0;o<ei.length;++o)if(t[ei[o]]){if(n)return!1;parseFloat(t[ei[o]])!==x(t[ei[o]])&&(n=!0)}return!0}function je(){return this._isValid}function Le(){return Xe(NaN)}function Pe(t){var e=W(t),n=e.year||0,o=e.quarter||0,r=e.month||0,i=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,c=e.minute||0,u=e.second||0,l=e.millisecond||0;this._isValid=Ee(e),this._milliseconds=+l+1e3*u+6e4*c+1e3*s*60*60,this._days=+a+7*i,this._months=+r+3*o+12*n,this._data={},this._locale=ie(),this._bubble()}function Ie(t){return t instanceof Pe}function Ye(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ne(t,e){H(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+U(~~(t/60),2)+e+U(~~t%60,2)})}function We(t,e){var n=(e||"").match(t);if(null===n)return null;var o=n[n.length-1]||[],r=(o+"").match(ni)||["-",0,0],i=60*r[1]+x(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Re(t,n){var o,r;return n._isUTC?(o=n.clone(),r=(b(t)||u(t)?t.valueOf():Ce(t).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+r),e.updateOffset(o,!1),o):Ce(t).local()}function Fe(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ue(t,n,o){var r,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=We(lr,t)))return this}else Math.abs(t)<16&&!o&&(t*=60);return!this._isUTC&&n&&(r=Fe(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!n||this._changeInProgress?rn(this,Xe(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Fe(this)}function He(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Ge(t){return this.utcOffset(0,t)}function Ve(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Fe(this),"m")),this}function Be(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=We(ur,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function ze(t){return!!this.isValid()&&(t=t?Ce(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Ze(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qe(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),t=Oe(t),t._a){var e=t._isUTC?p(t._a):Ce(t._a);this._isDSTShifted=this.isValid()&&k(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Je(){return!!this.isValid()&&!this._isUTC}function Ke(){return!!this.isValid()&&this._isUTC}function Qe(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Xe(t,e){var n,r,i,a=t,s=null;return Ie(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:c(t)?(a={},e?a[e]=t:a.milliseconds=t):(s=oi.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:x(s[gr])*n,h:x(s[yr])*n,m:x(s[_r])*n,s:x(s[br])*n,ms:x(Ye(1e3*s[wr]))*n}):(s=ri.exec(t))?(n="-"===s[1]?-1:1,a={y:tn(s[2],n),M:tn(s[3],n),w:tn(s[4],n),d:tn(s[5],n),h:tn(s[6],n),m:tn(s[7],n),s:tn(s[8],n)}):null==a?a={}:"object"===(void 0===a?"undefined":o(a))&&("from"in a||"to"in a)&&(i=nn(Ce(a.from),Ce(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new Pe(a),Ie(t)&&f(t,"_locale")&&(r._locale=t._locale),r}function tn(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function en(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function nn(t,e){var n;return t.isValid()&&e.isValid()?(e=Re(e,t),t.isBefore(e)?n=en(t,e):(n=en(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function on(t,e){return function(n,o){var r,i;return null===o||isNaN(+o)||(T(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),n="string"==typeof n?+n:n,r=Xe(n,o),rn(this,r,t),this}}function rn(t,n,o,r){var i=n._milliseconds,a=Ye(n._days),s=Ye(n._months);t.isValid()&&(r=null==r||r,s&&mt(t,it(t,"Month")+s*o),a&&at(t,"Date",it(t,"Date")+a*o),i&&t._d.setTime(t._d.valueOf()+i*o),r&&e.updateOffset(t,a||s))}function an(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function sn(t,n){var o=t||Ce(),r=Re(o,this).startOf("day"),i=e.calendarFormat(this,r)||"sameElse",a=n&&(M(n[i])?n[i].call(this,o):n[i]);return this.format(a||this.localeData().calendar(i,this,Ce(o)))}function cn(){return new _(this)}function un(t,e){var n=b(t)?t:Ce(t);return!(!this.isValid()||!n.isValid())&&(e=N(e)||"millisecond","millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function ln(t,e){var n=b(t)?t:Ce(t);return!(!this.isValid()||!n.isValid())&&(e=N(e)||"millisecond","millisecond"===e?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function fn(t,e,n,o){var r=b(t)?t:Ce(t),i=b(e)?e:Ce(e);return!!(this.isValid()&&r.isValid()&&i.isValid())&&(o=o||"()",("("===o[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===o[1]?this.isBefore(i,n):!this.isAfter(i,n)))}function dn(t,e){var n,o=b(t)?t:Ce(t);return!(!this.isValid()||!o.isValid())&&(e=N(e)||"millisecond","millisecond"===e?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function pn(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function hn(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function mn(t,e,n){var o,r,i;if(!this.isValid())return NaN;if(o=Re(t,this),!o.isValid())return NaN;switch(r=6e4*(o.utcOffset()-this.utcOffset()),e=N(e)){case"year":i=vn(this,o)/12;break;case"month":i=vn(this,o);break;case"quarter":i=vn(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-r)/864e5;break;case"week":i=(this-o-r)/6048e5;break;default:i=this-o}return n?i:w(i)}function vn(t,e){var n,o,r=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(r,"months");return e-i<0?(n=t.clone().add(r-1,"months"),o=(e-i)/(i-n)):(n=t.clone().add(r+1,"months"),o=(e-i)/(n-i)),-(r+o)||0}function gn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function yn(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?B(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _n(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(n+o+"-MM-DD[T]HH:mm:ss.SSS"+r)}function bn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=B(this,t);return this.localeData().postformat(n)}function wn(t,e){return this.isValid()&&(b(t)&&t.isValid()||Ce(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function xn(t){return this.from(Ce(),t)}function kn(t,e){return this.isValid()&&(b(t)&&t.isValid()||Ce(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Sn(t){return this.to(Ce(),t)}function On(t){var e;return void 0===t?this._locale._abbr:(e=ie(t),null!=e&&(this._locale=e),this)}function Tn(){return this._locale}function Mn(t,e){return(t%e+e)%e}function Cn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-fi:new Date(t,e,n).valueOf()}function Dn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-fi:Date.UTC(t,e,n)}function An(t){var n;if(void 0===(t=N(t))||"millisecond"===t||!this.isValid())return this;var o=this._isUTC?Dn:Cn;switch(t){case"year":n=o(this.year(),0,1);break;case"quarter":n=o(this.year(),this.month()-this.month()%3,1);break;case"month":n=o(this.year(),this.month(),1);break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=o(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=Mn(n+(this._isUTC?0:this.utcOffset()*ui),li);break;case"minute":n=this._d.valueOf(),n-=Mn(n,ui);break;case"second":n=this._d.valueOf(),n-=Mn(n,ci)}return this._d.setTime(n),e.updateOffset(this,!0),this}function $n(t){var n;if(void 0===(t=N(t))||"millisecond"===t||!this.isValid())return this;var o=this._isUTC?Dn:Cn;switch(t){case"year":n=o(this.year()+1,0,1)-1;break;case"quarter":n=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=o(this.year(),this.month()+1,1)-1;break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=li-Mn(n+(this._isUTC?0:this.utcOffset()*ui),li)-1;break;case"minute":n=this._d.valueOf(),n+=ui-Mn(n,ui)-1;break;case"second":n=this._d.valueOf(),n+=ci-Mn(n,ci)-1}return this._d.setTime(n),e.updateOffset(this,!0),this}function En(){return this._d.valueOf()-6e4*(this._offset||0)}function jn(){return Math.floor(this.valueOf()/1e3)}function Ln(){return new Date(this.valueOf())}function Pn(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function In(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Yn(){return this.isValid()?this.toISOString():null}function Nn(){return v(this)}function Wn(){return d({},m(this))}function Rn(){return m(this).overflow}function Fn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Un(t,e){H(0,[t,t.length],0,e)}function Hn(t){return zn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Gn(t){return zn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Vn(){return Tt(this.year(),1,4)}function Bn(){var t=this.localeData()._week;return Tt(this.year(),t.dow,t.doy)}function zn(t,e,n,o,r){var i;return null==t?Ot(this,o,r).year:(i=Tt(t,o,r),e>i&&(e=i),Zn.call(this,t,e,n,o,r))}function Zn(t,e,n,o,r){var i=St(t,e,n,o,r),a=xt(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function qn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Jn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Kn(t,e){e[wr]=x(1e3*("0."+t))}function Qn(){return this._isUTC?"UTC":""}function Xn(){return this._isUTC?"Coordinated Universal Time":""}function to(t){return Ce(1e3*t)}function eo(){return Ce.apply(null,arguments).parseZone()}function no(t){return t}function oo(t,e,n,o){var r=ie(),i=p().set(o,e);return r[n](i,t)}function ro(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return oo(t,e,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=oo(t,o,n,"month");return r}function io(t,e,n,o){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var r=ie(),i=t?r._week.dow:0;if(null!=n)return oo(e,(n+i)%7,o,"day");var a,s=[];for(a=0;a<7;a++)s[a]=oo(e,(a+i)%7,o,"day");return s}function ao(t,e){return ro(t,e,"months")}function so(t,e){return ro(t,e,"monthsShort")}function co(t,e,n){return io(t,e,n,"weekdays")}function uo(t,e,n){return io(t,e,n,"weekdaysShort")}function lo(t,e,n){return io(t,e,n,"weekdaysMin")}function fo(){var t=this._data;return this._milliseconds=_i(this._milliseconds),this._days=_i(this._days),this._months=_i(this._months),t.milliseconds=_i(t.milliseconds),t.seconds=_i(t.seconds),t.minutes=_i(t.minutes),t.hours=_i(t.hours),t.months=_i(t.months),t.years=_i(t.years),this}function po(t,e,n,o){var r=Xe(e,n);return t._milliseconds+=o*r._milliseconds,t._days+=o*r._days,t._months+=o*r._months,t._bubble()}function ho(t,e){return po(this,t,e,1)}function mo(t,e){return po(this,t,e,-1)}function vo(t){return t<0?Math.floor(t):Math.ceil(t)}function go(){var t,e,n,o,r,i=this._milliseconds,a=this._days,s=this._months,c=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*vo(_o(s)+a),a=0,s=0),c.milliseconds=i%1e3,t=w(i/1e3),c.seconds=t%60,e=w(t/60),c.minutes=e%60,n=w(e/60),c.hours=n%24,a+=w(n/24),r=w(yo(a)),s+=r,a-=vo(_o(r)),o=w(s/12),s%=12,c.days=a,c.months=s,c.years=o,this}function yo(t){return 4800*t/146097}function _o(t){return 146097*t/4800}function bo(t){if(!this.isValid())return NaN;var e,n,o=this._milliseconds;if("month"===(t=N(t))||"quarter"===t||"year"===t)switch(e=this._days+o/864e5,n=this._months+yo(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(_o(this._months)),t){case"week":return e/7+o/6048e5;case"day":return e+o/864e5;case"hour":return 24*e+o/36e5;case"minute":return 1440*e+o/6e4;case"second":return 86400*e+o/1e3;case"millisecond":return Math.floor(864e5*e)+o;default:throw new Error("Unknown unit "+t)}}function wo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN}function xo(t){return function(){return this.as(t)}}function ko(){return Xe(this)}function So(t){return t=N(t),this.isValid()?this[t+"s"]():NaN}function Oo(t){return function(){return this.isValid()?this._data[t]:NaN}}function To(){return w(this.days()/7)}function Mo(t,e,n,o,r){return r.relativeTime(e||1,!!n,t,o)}function Co(t,e,n){var o=Xe(t).abs(),r=Ii(o.as("s")),i=Ii(o.as("m")),a=Ii(o.as("h")),s=Ii(o.as("d")),c=Ii(o.as("M")),u=Ii(o.as("y")),l=r<=Yi.ss&&["s",r]||r<Yi.s&&["ss",r]||i<=1&&["m"]||i<Yi.m&&["mm",i]||a<=1&&["h"]||a<Yi.h&&["hh",a]||s<=1&&["d"]||s<Yi.d&&["dd",s]||c<=1&&["M"]||c<Yi.M&&["MM",c]||u<=1&&["y"]||["yy",u];return l[2]=e,l[3]=+t>0,l[4]=n,Mo.apply(null,l)}function Do(t){return void 0===t?Ii:"function"==typeof t&&(Ii=t,!0)}function Ao(t,e){return void 0!==Yi[t]&&(void 0===e?Yi[t]:(Yi[t]=e,"s"===t&&(Yi.ss=e-1),!0))}function $o(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=Co(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Eo(t){return(t>0)-(t<0)||+t}function jo(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,o=Ni(this._milliseconds)/1e3,r=Ni(this._days),i=Ni(this._months);t=w(o/60),e=w(t/60),o%=60,t%=60,n=w(i/12),i%=12;var a=n,s=i,c=r,u=e,l=t,f=o?o.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var p=d<0?"-":"",h=Eo(this._months)!==Eo(d)?"-":"",m=Eo(this._days)!==Eo(d)?"-":"",v=Eo(this._milliseconds)!==Eo(d)?"-":"";return p+"P"+(a?h+a+"Y":"")+(s?h+s+"M":"")+(c?m+c+"D":"")+(u||l||f?"T":"")+(u?v+u+"H":"")+(l?v+l+"M":"")+(f?v+f+"S":"")}var Lo,Po;Po=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,o=0;o<n;o++)if(o in e&&t.call(this,e[o],o,e))return!0;return!1};var Io=e.momentProperties=[],Yo=!1,No={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var Wo;Wo=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)f(t,e)&&n.push(e);return n};var Ro={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Fo={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Uo=/\d{1,2}/,Ho={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Go={},Vo={},Bo=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,zo=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Zo={},qo={},Jo=/\d/,Ko=/\d\d/,Qo=/\d{3}/,Xo=/\d{4}/,tr=/[+-]?\d{6}/,er=/\d\d?/,nr=/\d\d\d\d?/,or=/\d\d\d\d\d\d?/,rr=/\d{1,3}/,ir=/\d{1,4}/,ar=/[+-]?\d{1,6}/,sr=/\d+/,cr=/[+-]?\d+/,ur=/Z|[+-]\d\d:?\d\d/gi,lr=/Z|[+-]\d\d(?::?\d\d)?/gi,fr=/[+-]?\d+(\.\d{1,3})?/,dr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,pr={},hr={},mr=0,vr=1,gr=2,yr=3,_r=4,br=5,wr=6,xr=7,kr=8;H("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),H(0,["YY",2],0,function(){return this.year()%100}),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),Y("year","y"),R("year",1),Z("Y",cr),Z("YY",er,Ko),Z("YYYY",ir,Xo),Z("YYYYY",ar,tr),Z("YYYYYY",ar,tr),Q(["YYYYY","YYYYYY"],mr),Q("YYYY",function(t,n){n[mr]=2===t.length?e.parseTwoDigitYear(t):x(t)}),Q("YY",function(t,n){n[mr]=e.parseTwoDigitYear(t)}),Q("Y",function(t,e){e[mr]=parseInt(t,10)}),e.parseTwoDigitYear=function(t){return x(t)+(x(t)>68?1900:2e3)};var Sr,Or=rt("FullYear",!0);Sr=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},H("M",["MM",2],"Mo",function(){return this.month()+1}),H("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),H("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Y("month","M"),R("month",8),Z("M",er),Z("MM",er,Ko),Z("MMM",function(t,e){return e.monthsShortRegex(t)}),Z("MMMM",function(t,e){return e.monthsRegex(t)}),Q(["M","MM"],function(t,e){e[vr]=x(t)-1}),Q(["MMM","MMMM"],function(t,e,n,o){var r=n._locale.monthsParse(t,o,n._strict);null!=r?e[vr]=r:m(n).invalidMonth=t});var Tr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Mr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Cr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Dr=dr,Ar=dr;H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),R("week",5),R("isoWeek",5),Z("w",er),Z("ww",er,Ko),Z("W",er),Z("WW",er,Ko),X(["w","ww","W","WW"],function(t,e,n,o){e[o.substr(0,1)]=x(t)});var $r={dow:0,doy:6};H("d",0,"do","day"),H("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),H("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),H("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),Z("d",er),Z("e",er),Z("E",er),Z("dd",function(t,e){return e.weekdaysMinRegex(t)}),Z("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Z("dddd",function(t,e){return e.weekdaysRegex(t)}),X(["dd","ddd","dddd"],function(t,e,n,o){var r=n._locale.weekdaysParse(t,o,n._strict);null!=r?e.d=r:m(n).invalidWeekday=t}),X(["d","e","E"],function(t,e,n,o){e[o]=x(t)});var Er="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Pr=dr,Ir=dr,Yr=dr;H("H",["HH",2],0,"hour"),H("h",["hh",2],0,zt),H("k",["kk",2],0,Zt),H("hmm",0,0,function(){return""+zt.apply(this)+U(this.minutes(),2)}),H("hmmss",0,0,function(){return""+zt.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),qt("a",!0),qt("A",!1),Y("hour","h"),R("hour",13),Z("a",Jt),Z("A",Jt),Z("H",er),Z("h",er),Z("k",er),Z("HH",er,Ko),Z("hh",er,Ko),Z("kk",er,Ko),Z("hmm",nr),Z("hmmss",or),Z("Hmm",nr),Z("Hmmss",or),Q(["H","HH"],yr),Q(["k","kk"],function(t,e,n){var o=x(t);e[yr]=24===o?0:o}),Q(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Q(["h","hh"],function(t,e,n){e[yr]=x(t),m(n).bigHour=!0}),Q("hmm",function(t,e,n){var o=t.length-2;e[yr]=x(t.substr(0,o)),e[_r]=x(t.substr(o)),m(n).bigHour=!0}),Q("hmmss",function(t,e,n){var o=t.length-4,r=t.length-2;e[yr]=x(t.substr(0,o)),e[_r]=x(t.substr(o,2)),e[br]=x(t.substr(r)),m(n).bigHour=!0}),Q("Hmm",function(t,e,n){var o=t.length-2;e[yr]=x(t.substr(0,o)),e[_r]=x(t.substr(o))}),Q("Hmmss",function(t,e,n){var o=t.length-4,r=t.length-2;e[yr]=x(t.substr(0,o)),e[_r]=x(t.substr(o,2)),e[br]=x(t.substr(r))});var Nr,Wr=/[ap]\.?m?\.?/i,Rr=rt("Hours",!0),Fr={calendar:Ro,longDateFormat:Fo,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Uo,relativeTime:Ho,months:Mr,monthsShort:Cr,week:$r,weekdays:Er,weekdaysMin:Lr,weekdaysShort:jr,meridiemParse:Wr},Ur={},Hr={},Gr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Vr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Br=/Z|[+-]\d\d(?::?\d\d)?/,zr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Zr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],qr=/^\/?Date\((\-?\d+)/i,Jr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Kr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};e.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Qr=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ce.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()}),Xr=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ce.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:g()}),ti=function(){return Date.now?Date.now():+new Date},ei=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ne("Z",":"),Ne("ZZ",""),Z("Z",lr),Z("ZZ",lr),Q(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=We(lr,t)});var ni=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var oi=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ri=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Xe.fn=Pe.prototype,Xe.invalid=Le;var ii=on(1,"add"),ai=on(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var si=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)}),ci=1e3,ui=60*ci,li=60*ui,fi=3506328*li;H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Un("gggg","weekYear"),Un("ggggg","weekYear"),Un("GGGG","isoWeekYear"),Un("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),Z("G",cr),Z("g",cr),Z("GG",er,Ko),Z("gg",er,Ko),Z("GGGG",ir,Xo),Z("gggg",ir,Xo),Z("GGGGG",ar,tr),Z("ggggg",ar,tr),X(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,o){e[o.substr(0,2)]=x(t)}),X(["gg","GG"],function(t,n,o,r){n[r]=e.parseTwoDigitYear(t)}),H("Q",0,"Qo","quarter"),Y("quarter","Q"),R("quarter",7),Z("Q",Jo),Q("Q",function(t,e){e[vr]=3*(x(t)-1)}),H("D",["DD",2],"Do","date"),Y("date","D"),R("date",9),Z("D",er),Z("DD",er,Ko),Z("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Q(["D","DD"],gr),Q("Do",function(t,e){e[gr]=x(t.match(er)[0])});var di=rt("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),R("dayOfYear",4),Z("DDD",rr),Z("DDDD",Qo),Q(["DDD","DDDD"],function(t,e,n){n._dayOfYear=x(t)}),H("m",["mm",2],0,"minute"),Y("minute","m"),R("minute",14),Z("m",er),Z("mm",er,Ko),Q(["m","mm"],_r);var pi=rt("Minutes",!1);H("s",["ss",2],0,"second"),Y("second","s"),R("second",15),Z("s",er),Z("ss",er,Ko),Q(["s","ss"],br);var hi=rt("Seconds",!1);H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Y("millisecond","ms"),R("millisecond",16),Z("S",rr,Jo),Z("SS",rr,Ko),Z("SSS",rr,Qo);var mi;for(mi="SSSS";mi.length<=9;mi+="S")Z(mi,sr);for(mi="S";mi.length<=9;mi+="S")Q(mi,Kn);var vi=rt("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var gi=_.prototype;gi.add=ii,gi.calendar=sn,gi.clone=cn,gi.diff=mn,gi.endOf=$n,gi.format=bn,gi.from=wn,gi.fromNow=xn,gi.to=kn,gi.toNow=Sn,gi.get=st,gi.invalidAt=Rn,gi.isAfter=un,gi.isBefore=ln,gi.isBetween=fn,gi.isSame=dn,gi.isSameOrAfter=pn,gi.isSameOrBefore=hn,gi.isValid=Nn,gi.lang=si,gi.locale=On,gi.localeData=Tn,gi.max=Xr,gi.min=Qr,gi.parsingFlags=Wn,gi.set=ct,gi.startOf=An,gi.subtract=ai,gi.toArray=Pn,gi.toObject=In,gi.toDate=Ln,gi.toISOString=yn,gi.inspect=_n,gi.toJSON=Yn,gi.toString=gn,gi.unix=jn,gi.valueOf=En,gi.creationData=Fn,gi.year=Or,gi.isLeapYear=ot,gi.weekYear=Hn,gi.isoWeekYear=Gn,gi.quarter=gi.quarters=qn,gi.month=vt,gi.daysInMonth=gt,gi.week=gi.weeks=At,gi.isoWeek=gi.isoWeeks=$t,gi.weeksInYear=Bn,gi.isoWeeksInYear=Vn,gi.date=di,gi.day=gi.days=Rt,gi.weekday=Ft,gi.isoWeekday=Ut,gi.dayOfYear=Jn,gi.hour=gi.hours=Rr,gi.minute=gi.minutes=pi,gi.second=gi.seconds=hi,gi.millisecond=gi.milliseconds=vi,gi.utcOffset=Ue,gi.utc=Ge,gi.local=Ve,gi.parseZone=Be,gi.hasAlignedHourOffset=ze,gi.isDST=Ze,gi.isLocal=Je,gi.isUtcOffset=Ke,gi.isUtc=Qe,gi.isUTC=Qe,gi.zoneAbbr=Qn,gi.zoneName=Xn,gi.dates=O("dates accessor is deprecated. Use date instead.",di),gi.months=O("months accessor is deprecated. Use month instead",vt),gi.years=O("years accessor is deprecated. Use year instead",Or),gi.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",He),gi.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qe);var yi=A.prototype;yi.calendar=$,yi.longDateFormat=E,yi.invalidDate=j,yi.ordinal=L,yi.preparse=no,yi.postformat=no,yi.relativeTime=P,yi.pastFuture=I,yi.set=C,yi.months=ft,yi.monthsShort=dt,yi.monthsParse=ht,yi.monthsRegex=_t,yi.monthsShortRegex=yt,yi.week=Mt,yi.firstDayOfYear=Dt,yi.firstDayOfWeek=Ct,yi.weekdays=Pt,yi.weekdaysMin=Yt,yi.weekdaysShort=It,yi.weekdaysParse=Wt,yi.weekdaysRegex=Ht,yi.weekdaysShortRegex=Gt,yi.weekdaysMinRegex=Vt,yi.isPM=Kt,yi.meridiem=Qt,ne("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===x(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),e.lang=O("moment.lang is deprecated. Use moment.locale instead.",ne),e.langData=O("moment.langData is deprecated. Use moment.localeData instead.",ie);var _i=Math.abs,bi=xo("ms"),wi=xo("s"),xi=xo("m"),ki=xo("h"),Si=xo("d"),Oi=xo("w"),Ti=xo("M"),Mi=xo("Q"),Ci=xo("y"),Di=Oo("milliseconds"),Ai=Oo("seconds"),$i=Oo("minutes"),Ei=Oo("hours"),ji=Oo("days"),Li=Oo("months"),Pi=Oo("years"),Ii=Math.round,Yi={ss:44,s:45,m:45,h:22,d:26,M:11},Ni=Math.abs,Wi=Pe.prototype;return Wi.isValid=je,Wi.abs=fo,Wi.add=ho,Wi.subtract=mo,Wi.as=bo,Wi.asMilliseconds=bi,Wi.asSeconds=wi,Wi.asMinutes=xi,Wi.asHours=ki,Wi.asDays=Si,Wi.asWeeks=Oi,Wi.asMonths=Ti,Wi.asQuarters=Mi,Wi.asYears=Ci,Wi.valueOf=wo,Wi._bubble=go,Wi.clone=ko,Wi.get=So,Wi.milliseconds=Di,Wi.seconds=Ai,Wi.minutes=$i,Wi.hours=Ei,Wi.days=ji,Wi.weeks=To,Wi.months=Li,Wi.years=Pi,Wi.humanize=$o,Wi.toISOString=jo,Wi.toString=jo,Wi.toJSON=jo,Wi.locale=On,Wi.localeData=Tn,Wi.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",jo),Wi.lang=si,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Z("x",cr),Z("X",fr),Q("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Q("x",function(t,e,n){n._d=new Date(x(t))}),e.version="2.24.0",function(t){Lo=t}(Ce),e.fn=gi,e.min=Ae,e.max=$e,e.now=ti,e.utc=p,e.unix=to,e.months=ao,e.isDate=u,e.locale=ne,e.invalid=g,e.duration=Xe,e.isMoment=b,e.weekdays=co,e.parseZone=eo,e.localeData=ie,e.isDuration=Ie,e.monthsShort=so,e.weekdaysMin=lo,e.defineLocale=oe,e.updateLocale=re,e.locales=ae,e.weekdaysShort=uo,e.normalizeUnits=N,e.relativeTimeRounding=Do,e.relativeTimeThreshold=Ao,e.calendarFormat=an,e.prototype=gi,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e})}),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s={install:function(t,e){var n=e&&e.moment?e.moment:i;Object.defineProperties(t.prototype,{$moment:{get:function(){return n}}}),t.moment=n,t.filter("moment",function(){function t(){for(var e=arguments,o=arguments.length,r=Array(o),i=0;i<o;i++)r[i]=e[i];r=Array.prototype.slice.call(r);var s=r.shift();switch(s){case"add":for(var u=r.shift().split(",").map(Function.prototype.call,String.prototype.trim),l={},f=0;f<u.length;f++){var d=u[f].split(" ");l[d[1]]=d[0]}c.add(l);break;case"subtract":for(var p=r.shift().split(",").map(Function.prototype.call,String.prototype.trim),h={},m=0;m<p.length;m++){var v=p[m].split(" ");h[v[1]]=v[0]}c.subtract(h);break;case"from":var g="now",y=!1;"now"===r[0]&&r.shift(),n(r[0]).isValid()&&(g=n(r.shift())),!0===r[0]&&(r.shift(),y=!0),c="now"!==g?c.from(g,y):c.fromNow(y);break;case"diff":var _=n(),b="",w=!1;n(r[0]).isValid()?_=n(r.shift()):null!==r[0]&&"now"!==r[0]||r.shift(),r[0]&&(b=r.shift()),!0===r[0]&&(w=r.shift()),c=c.diff(_,b,w);break;case"calendar":var x=n(),k={};n(r[0]).isValid()?x=n(r.shift()):null!==r[0]&&"now"!==r[0]||r.shift(),"object"===a(r[0])&&(k=r.shift()),c=c.calendar(x,k);break;case"utc":c.utc();break;case"timezone":c.tz(r.shift());break;default:var S=s;c=c.format(S)}r.length&&t.apply(t,r)}for(var e=arguments,o=arguments.length,r=Array(o),i=0;i<o;i++)r[i]=e[i];r=Array.prototype.slice.call(r);var s=r.shift(),c=void 0;return c=Array.isArray(s)&&"string"==typeof s[0]?n(s[0],s[1],!0):"number"==typeof s&&s.toString().length<12?n.unix(s):n(s),s&&c.isValid()?(t.apply(t,r),c):(console.warn("Could not build a valid `moment` object from input."),s)}),t.filter("duration",function(){function t(t){Array.isArray(t)||(t=[t]);var e=n.duration.apply(n,o(t));return e.isValid()||console.warn("Could not build a valid `duration` object from input."),e}for(var e=arguments,r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=e[a];i=Array.prototype.slice.call(i);var s=i.shift(),c=i.shift(),u=t(s);if("add"===c||"subtract"===c){var l=t(i);u[c](l)}else if(u&&u[c]){var f;u=(f=u)[c].apply(f,o(i))}return u})}},c=s.install;e.default=s,e.install=c,Object.defineProperty(e,"__esModule",{value:!0})})}).call(e,n(0))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default=r.default.component("notification",{template:"#opinionstage-notification",methods:{initiateUpdate:function(){this.$emit("update-btn-click")}}})},function(t,e,n){var o=n(31);"string"==typeof o&&(o=[[t.i,o,""]]);var r={};r.transform=void 0;n(4)(o,r);o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(3)(!1),e.push([t.i,'.opinionstage-content-popup-contents{min-width:960px}.opinionstage-content-popup-contents[data-opinionstage-client-logged-in=""]{max-width:680px;min-width:680px}.opinionstage-content-popup-contents[data-opinionstage-client-logged-in=""] .main-title{font-size:20px}.opinionstage-content-popup-contents[data-opinionstage-client-logged-in=""] .page-content{margin:0 auto;padding:40px 30px}.opinionstage-content-popup-contents[data-opinionstage-client-logged-in=""] .page-content #os-start-login{margin-top:30px}.opinionstage-content-popup-contents *{margin:0;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:Open Sans,Helvetica,sans-serif}.opinionstage-content-popup-contents .header{background-color:#222120;width:100%}.opinionstage-content-popup-contents .header__container{color:#fff;width:100%;margin:auto;padding:0 15px}.opinionstage-content-popup-contents .header__container.mw-1000{margin-left:0;max-width:1000px}.opinionstage-content-popup-contents .header__logo{display:inline-block}.opinionstage-content-popup-contents .header__logo a:active,.opinionstage-content-popup-contents .header__logo a:focus,.opinionstage-content-popup-contents .header__logo a:hover,.opinionstage-content-popup-contents .header__logo a:visited{border:none;background:none;-webkit-box-shadow:none;box-shadow:none}.opinionstage-content-popup-contents .header__logo img{margin:15px 10px;width:150px}.opinionstage-content-popup-contents .header__nav{display:inline-block;font-size:0;vertical-align:bottom}.opinionstage-content-popup-contents .header__action{display:block;float:right;font-size:0;margin-top:10px}.opinionstage-content-popup-contents .page-content{margin:0 auto;padding:25px 15px 15px}.opinionstage-content-popup-contents .main-title{font-size:30px;font-weight:400;line-height:normal}.opinionstage-content-popup-contents .conect-form{text-align:center;margin-top:20px}.opinionstage-content-popup-contents .content-actions{height:40px;margin-bottom:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.opinionstage-content-popup-contents .content-actions__left,.opinionstage-content-popup-contents .content-actions__right{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.opinionstage-content-popup-contents .content-actions__left{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.opinionstage-content-popup-contents .content-actions__right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.opinionstage-content-popup-contents .content-actions__sep{border-right:1px solid #e5e5e5;margin:0 20px}.opinionstage-content-popup-contents .content-actions:after{content:"";clear:both;display:block}.opinionstage-content-popup-contents .filter__itm{display:inline-block;cursor:pointer;font-size:12px;margin-right:0;line-height:25px;text-transform:uppercase;width:100%}.opinionstage-content-popup-contents .filter__itm:first-child{border-top:1px solid #3487fa}.opinionstage-content-popup-contents .filter__itm:last-child{border-bottom:1px solid #3487fa}.opinionstage-content-popup-contents .filter__itm.active{color:#fff;background:#5299fb;font-weight:400;pointer-events:none}.opinionstage-content-popup-contents .filter{display:inline-block;margin:0;width:auto}.opinionstage-content-popup-contents .content__list{height:calc(92vh - 160px);overflow-y:scroll}.opinionstage-content-popup-contents .content__list .opinionstage-item-action-container{padding:25px 0}.opinionstage-content-popup-contents .content__loading{text-align:center}.opinionstage-content-popup-contents .content__itm{margin:0;padding-bottom:6px;padding-top:10px;position:relative;width:100%;border-bottom:1px solid #e5e5e5}.opinionstage-content-popup-contents .content__itm:first-child{border-top:1px solid #e5e5e5}.opinionstage-content-popup-contents .content__itm:hover .content__links{display:inline-block;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.opinionstage-content-popup-contents .content__image{display:inline-block;height:90px;position:relative;width:15%}.opinionstage-content-popup-contents .content__image img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.opinionstage-content-popup-contents .content__info{display:inline-block;position:relative;background:transparent;font-size:16px;height:85px;width:50%;line-height:normal;margin:0;overflow:hidden;padding:0 10px;text-overflow:ellipsis;white-space:nowrap}.opinionstage-content-popup-contents .content__info a{color:inherit;text-decoration:none}.opinionstage-content-popup-contents .content__info-title{font-weight:600}.opinionstage-content-popup-contents .content__info .opinionstage-draft{color:#f46368;text-transform:capitalize;font-size:80%}.opinionstage-content-popup-contents .content__info .icon-os-status-open{color:#3aaebd}.opinionstage-content-popup-contents .content__info .icon-os-status-closed{color:#f46368}.opinionstage-content-popup-contents .opinionstage-with-separator:before{content:"";margin:0 10px;height:100%;border-left:1px solid #b1b1b1}.opinionstage-content-popup-contents .content__info-details{position:absolute;bottom:0;font-size:13px;color:#b1b1b1}.opinionstage-content-popup-contents .content__info-details span{color:#b1b1b1}.opinionstage-content-popup-contents .content__links{background:none;display:inline-block;float:right;text-align:right;padding:20px 10px;left:0;position:relative;top:0;width:30%}@media only screen and (max-width:767px){.opinionstage-content-popup-contents .content__links{padding-left:0;padding-right:0}}.opinionstage-content-popup-contents .content__links-itm{border-radius:5px;border:1px solid #fff;color:#fff;background:transparent;cursor:pointer;display:block;line-height:1;margin:5px auto;padding:14px 8px;text-align:center;text-decoration:none;text-transform:uppercase;width:200px}.opinionstage-content-popup-contents .content__links-itm:hover{background-color:hsla(0,0%,100%,.1)}.opinionstage-content-popup-contents .popup-content-btn{border:1px solid #32adbc;border-radius:2px;color:#32adbc;display:inline;font-size:15px;font-weight:600;padding:13px 14px;text-align:center;text-decoration:none;width:auto}.opinionstage-content-popup-contents .content__label{background-color:#222120;bottom:auto;color:#fff;font-size:12px;top:0;left:0;padding:1px 5px;position:absolute;text-transform:uppercase;z-index:2}.opinionstage-content-popup-contents .std-btn{background-color:rgba(123,91,167,.4);border-radius:5px 5px 0 0;cursor:pointer;color:#fff;display:inline-block;font:16px/50px Open Sans,Helvetica,sans-serif;margin:0;text-align:center;text-transform:uppercase;vertical-align:bottom;width:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.opinionstage-content-popup-contents .std-btn.active{background-color:#fff;color:#222120}.opinionstage-content-popup-contents .create-new-menu-box{display:inline-block;position:relative}.opinionstage-content-popup-contents .create-new-menu-box:hover .create-new-menu{display:block}.opinionstage-content-popup-contents .create-new-menu{display:none;position:absolute;width:100%;top:39px;left:0;border:1px solid #3aaebd;background-color:#fff;z-index:3}.opinionstage-content-popup-contents .create-menu__itm{display:block;color:#3aaebd;border-bottom:1px solid #3aaebd;padding:8px 12px;background-color:#fff;font-size:14px;text-decoration:none;text-transform:uppercase}.opinionstage-content-popup-contents .create-menu__itm:hover{text-decoration:none;color:#fff;background-color:#44a9d2}.opinionstage-content-popup-contents .btn-close{border-radius:5px;color:#fff;cursor:pointer;display:inline-block;font:27px/48px Open Sans,Helvetica,sans-serif;margin-left:20px;text-align:center;width:42px}.opinionstage-content-popup-contents .btn-close:hover{opacity:.8}.opinionstage-content-popup-contents .btn-blue{display:inline-block;background-color:#38aebd;border:medium none;border-radius:5px;color:#fff;cursor:pointer;font-size:16px;line-height:36px;outline:medium none;text-transform:uppercase;text-decoration:none;width:140px}.opinionstage-content-popup-contents .btn-blue:hover{background-color:#55a6cc}.opinionstage-content-popup-contents .btn-show-more{padding:15px 0;border:none;background-color:#e6e6e6;width:100%}.opinionstage-content-popup-contents .std-inp{background-color:#fff;border:1px solid #c1c1c1;border-radius:5px;height:36px;outline:medium none;padding:0 15px;width:450px}.opinionstage-content-popup-contents .os-search{width:180px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #ccc;border-radius:2px;-webkit-box-shadow:0 0;box-shadow:0 0}.opinionstage-content-popup-contents .os-search__input{color:#797979;padding-left:10px;width:100%;border:none;border-radius:0;outline:none}.opinionstage-content-popup-contents .os-search__input:focus{border:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;outline:none}.opinionstage-content-popup-contents .os-search__icon{color:#3aaebd;line-height:normal;font-size:18px;padding:10px 9px;margin:0}.opinionstage-content-popup-contents .hidden{visibility:hidden}.opinionstage-content-popup-contents .opinionstage-blue-btn{cursor:pointer;text-align:center;color:#fff;text-decoration:none;display:inline-block;padding:11px 10px;font-weight:400;background-color:#38aebd;border-radius:3px;border-style:hidden;width:130px;margin-right:15px}.opinionstage-content-popup-contents .opinionstage-blue-btn:hover{opacity:.9}.opinionstage-content-popup-contents .opinionstage-section-notification{background-color:rgba(0,0,0,.7);width:100%;padding:20px 25px;z-index:3;text-align:center;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.6);box-shadow:0 2px 5px rgba(0,0,0,.6)}.opinionstage-content-popup-contents .opinionstage-section-notification__title{color:#fff;font-size:15px;margin-bottom:15px}.opinionstage-content-popup-contents .opinionstage-section-notification__controls{position:relative;font-size:0}.opinionstage-content-popup-contents .notification-container~div>.page-content .content__list{max-height:calc(92vh - 270px)}.opinionstage-content-popup-contents .bordered-container{border:1px solid #e5e5e5;text-align:center;padding:40px}.opinionstage-content-popup-contents .opinionstage-introduction-video{text-align:center;padding:20px}.opinionstage-content-popup-contents .opinionstage-connect-form{margin-top:12px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.opinionstage-content-popup-contents .opinionstage-connect-form .opinionstage-conect-input{border:1px solid #e5e5e5;height:40px;padding:0 15px;width:420px;border-radius:3px;margin-right:10px;-webkit-box-shadow:none!important;box-shadow:none!important;outline:none!important}.opinionstage-content-popup-contents .dropbtn{background-color:#fff;border:1px solid #e4e4e4;border-right:0!important;-webkit-box-shadow:0 0 0!important;box-shadow:0 0 0!important;cursor:pointer;display:inline-block;font:12px/38px Open Sans,Helvetica,sans-serif;outline:none!important;padding-left:10px;position:relative;text-align:left;text-decoration:none;width:140px;margin-right:50px}.opinionstage-content-popup-contents .dropbtn span{color:#555454;font-size:12px;font-weight:700;text-transform:uppercase}.opinionstage-content-popup-contents .dropbtn:before{color:#000;content:"\\E958";-webkit-transform:rotate(-90deg);transform:rotate(-90deg);display:block;font-family:os-icon-plugin-plugin-font;font-size:9px;position:absolute;right:-25px;top:0;z-index:3;font-weight:700}.opinionstage-content-popup-contents .dropbtn:after{border:1px solid #e4e4e4;border-left:0!important;content:"";position:absolute;right:-40px;top:-1px;width:40px;height:38px}.opinionstage-content-popup-contents .dropdown{display:inline-block;position:relative}.opinionstage-content-popup-contents .dropdown:hover .popup-action-dropdown.dropdown-content{width:130px}.opinionstage-content-popup-contents .dropdown:hover .popup-action.popup-content-btn{background-color:#32adbc}.opinionstage-content-popup-contents .dropdown:hover .popup-action.popup-content-btn:before{color:#fff}.opinionstage-content-popup-contents .dropdown-popup-action{height:45px}.opinionstage-content-popup-contents .dropdown-content{background-color:#f9f9f9;-webkit-box-shadow:0 8px 16px 0 rgba(0,0,0,.2);box-shadow:0 8px 16px 0 rgba(0,0,0,.2);display:none;left:1px;position:absolute;top:40px;z-index:9}.opinionstage-content-popup-contents .dropdown-content div{background-color:#fff;border:1px solid #3487fa;border-bottom:0;border-top:0;color:#555454;display:block;padding:5px 10px 5px 20px;text-decoration:none}.opinionstage-content-popup-contents .dropdown-content div:hover{background-color:#3487fa;color:#fff!important}.opinionstage-content-popup-contents .dropdown_items .dropdown-content{width:180px}.opinionstage-content-popup-contents .dropdown:hover .dropdown-content{display:block!important;width:180px}.opinionstage-content-popup-contents .dropdown:hover .dropbtn{background-color:#fff}.opinionstage-content-popup-contents .popup-action:before{color:#32adbc;padding:0;position:absolute;right:18px;content:"\\E958";-webkit-transform:rotate(-90deg);transform:rotate(-90deg);display:block;font-family:os-icon-plugin-plugin-font;font-size:9px;top:15px;z-index:3;font-weight:700}.opinionstage-content-popup-contents .popup-action.popup-content-btn{margin-left:10px;padding:12px 25px;position:relative}.opinionstage-content-popup-contents .popup-action-dropdown{background:#fff;border:1px solid #32adbc;border-radius:3px}.opinionstage-content-popup-contents .popup-action-dropdown .content__links-itm{border:none;border-bottom:1px solid #32adbc;border-radius:0;color:#32adbc;font-size:14px;font-weight:400;margin:0;padding:10px;width:auto;text-align:left!important;letter-spacing:1px}.opinionstage-content-popup-contents .popup-action-dropdown .content__links-itm:hover{background-color:#32adbc!important;color:#fff}.opinionstage-content-popup-contents .popup-action-dropdown .content__links-itm:last-child{border:none}.opinionstage-content-popup-contents .popup-action-dropdown.dropdown-content{left:auto;right:0;top:20px;z-index:10}.opinionstage-content-popup-contents .opinionstage-anchors-list .filter__itm{padding:0}.opinionstage-content-popup-contents .opinionstage-anchors-list .filter__itm:hover a{color:#fff}.opinionstage-content-popup-contents .opinionstage-anchors-list a{padding:5px 10px 5px 20px;display:block;text-decoration:none;width:100%}.opinionstage-content-popup-contents .selected-draft__container{position:absolute;left:0;top:0;height:100%;width:100%;background-color:rgba(0,0,0,.8);z-index:9999}.opinionstage-content-popup-contents .selected-draft__container>div{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:6px;overflow:hidden;background-color:#fff;padding:25px 35px}.opinionstage-content-popup-contents .selected-draft__message{background-color:#f5f5f5;width:650px;padding:25px 35px;margin-top:20px}.opinionstage-content-popup-contents .selected-draft__message p{font-size:16px}.opinionstage-content-popup-contents .selected-draft__message a{color:#32adbc}.opinionstage-content-popup-contents .opinionstage-close{position:absolute;right:16px;top:12px;width:20px;height:20px;cursor:pointer}.opinionstage-content-popup-contents .opinionstage-close:after,.opinionstage-content-popup-contents .opinionstage-close:before{position:absolute;left:15px;content:" ";height:17px;width:2px;background-color:#b1b1b1}.opinionstage-content-popup-contents .opinionstage-close:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.opinionstage-content-popup-contents .opinionstage-close:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.opinionstage-my-items-view section{background:#fff}.opinionstage-my-items-view .opinionstage-section-notification,.opinionstage-my-items-view .page-content{width:1000px;margin-left:0}',""])},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(5),a=function(t){return t&&t.__esModule?t:{default:t}}(i),s=n(2);window.OpinionStage&&void 0!==OpinionStage.contentPopup&&console.warn("[OpinionStage] content-popup APIs was already included"),function(t,e){var n=function(){function t(){o(this,t),this.app=void 0}return r(t,[{key:"show",value:function(t){"function"!=typeof t&&(t=function(){});var n=e("[data-opinionstage-content-popup-template]").html();e("[opinionstage-my-items-view]").html(n),this.app||(this.app=new a.default),this.app.widgetType=s.WIDGET_ALL,this.app.isModalOpened=!0,this.app.isMyItemsPage=!0,this.app.widgetSelectCb=t}}]),t}();t.widgetList=new n,t.widgetList.WIDGET_ALL=s.WIDGET_ALL}(window.OpinionStage=window.OpinionStage||{},jQuery)}]);
|
17 |
*/
|
18 |
var S=function(t){function e(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:e});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,n.call(this,t)}}},O="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,T=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},M={namespaced:{configurable:!0}};M.namespaced.get=function(){return!!this._rawModule.namespaced},T.prototype.addChild=function(t,e){this._children[t]=e},T.prototype.removeChild=function(t){delete this._children[t]},T.prototype.getChild=function(t){return this._children[t]},T.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},T.prototype.forEachChild=function(t){r(this._children,t)},T.prototype.forEachGetter=function(t){this._rawModule.getters&&r(this._rawModule.getters,t)},T.prototype.forEachAction=function(t){this._rawModule.actions&&r(this._rawModule.actions,t)},T.prototype.forEachMutation=function(t){this._rawModule.mutations&&r(this._rawModule.mutations,t)},Object.defineProperties(T.prototype,M);var C=function(t){this.register([],t,!1)};C.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},C.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},C.prototype.update=function(t){s([],this.root,t)},C.prototype.register=function(t,e,n){var o=this;void 0===n&&(n=!0);var i=new T(e,n);if(0===t.length)this.root=i;else{this.get(t.slice(0,-1)).addChild(t[t.length-1],i)}e.modules&&r(e.modules,function(e,r){o.register(t.concat(r),e,n)})},C.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var D,A=function(t){var e=this;void 0===t&&(t={}),!D&&"undefined"!=typeof window&&window.Vue&&b(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1);var i=t.state;void 0===i&&(i={}),"function"==typeof i&&(i=i()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new C(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new D;var a=this,s=this,c=s.dispatch,u=s.commit;this.dispatch=function(t,e){return c.call(a,t,e)},this.commit=function(t,e,n){return u.call(a,t,e,n)},this.strict=r,f(this,i,[],this._modules.root),l(this,i),n.forEach(function(t){return t(e)}),D.config.devtools&&o(this)},$={state:{configurable:!0}};$.state.get=function(){return this._vm._data.$$state},$.state.set=function(t){},A.prototype.commit=function(t,e,n){var o=this,r=_(t,e,n),i=r.type,a=r.payload,s=(r.options,{type:i,payload:a}),c=this._mutations[i];c&&(this._withCommit(function(){c.forEach(function(t){t(a)})}),this._subscribers.forEach(function(t){return t(s,o.state)}))},A.prototype.dispatch=function(t,e){var n=this,o=_(t,e),r=o.type,i=o.payload,a={type:r,payload:i},s=this._actions[r];if(s)return this._actionSubscribers.forEach(function(t){return t(a,n.state)}),s.length>1?Promise.all(s.map(function(t){return t(i)})):s[0](i)},A.prototype.subscribe=function(t){return c(t,this._subscribers)},A.prototype.subscribeAction=function(t){return c(t,this._actionSubscribers)},A.prototype.watch=function(t,e,n){var o=this;return this._watcherVM.$watch(function(){return t(o.state,o.getters)},e,n)},A.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},A.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),f(this,this.state,t,this._modules.get(t),n.preserveState),l(this,this.state)},A.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=y(e.state,t.slice(0,-1));D.delete(n,t[t.length-1])}),u(this)},A.prototype.hotUpdate=function(t){this._modules.update(t),u(this,!0)},A.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(A.prototype,$);var E=x(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,r=e.val;n[o]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var o=k(this.$store,"mapState",t);if(!o)return;e=o.context.state,n=o.context.getters}return"function"==typeof r?r.call(this,e,n):e[r]},n[o].vuex=!0}),n}),j=x(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,r=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.commit;if(t){var i=k(this.$store,"mapMutations",t);if(!i)return;o=i.context.commit}return"function"==typeof r?r.apply(this,[o].concat(e)):o.apply(this.$store,[r].concat(e))}}),n}),L=x(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,r=e.val;r=t+r,n[o]=function(){if(!t||k(this.$store,"mapGetters",t))return this.$store.getters[r]},n[o].vuex=!0}),n}),P=x(function(t,e){var n={};return w(e).forEach(function(e){var o=e.key,r=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.dispatch;if(t){var i=k(this.$store,"mapActions",t);if(!i)return;o=i.context.dispatch}return"function"==typeof r?r.apply(this,[o].concat(e)):o.apply(this.$store,[r].concat(e))}}),n}),I=function(t){return{mapState:E.bind(null,t),mapGetters:L.bind(null,t),mapMutations:j.bind(null,t),mapActions:P.bind(null,t)}},Y={Store:A,install:b,version:"2.5.0",mapState:E,mapMutations:j,mapGetters:L,mapActions:P,createNamespacedHelpers:I};e.default=Y},function(t,e,n){(function(e){function n(t){return t.split("")}function o(t,e,n,o){for(var r=t.length,i=n+(o?1:-1);o?i--:++i<r;)if(e(t[i],i,t))return i;return-1}function r(t,e,n){if(e!==e)return o(t,i,n);for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}function i(t){return t!==t}function a(t,e){for(var n=-1,o=t.length;++n<o&&r(e,t[n],0)>-1;);return n}function s(t,e){for(var n=t.length;n--&&r(e,t[n],0)>-1;);return n}function c(t){return A.test(t)}function u(t){return c(t)?l(t):n(t)}function l(t){return t.match(D)||[]}function f(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),n=n>r?r:n,n<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++o<r;)i[o]=t[o+e];return i}function d(t){if("string"==typeof t)return t;if(m(t))return N?N.call(t):"";var e=t+"";return"0"==e&&1/t==-y?"-0":e}function p(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:f(t,e,n)}function h(t){return!!t&&"object"==typeof t}function m(t){return"symbol"==typeof t||h(t)&&P.call(t)==_}function v(t){return null==t?"":d(t)}function g(t,e,n){if((t=v(t))&&(n||void 0===e))return t.replace(b,"");if(!t||!(e=d(e)))return t;var o=u(t),r=u(e);return p(o,a(o,r),s(o,r)+1).join("")}var y=1/0,_="[object Symbol]",b=/^\s+|\s+$/g,w="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",x="\\ud83c[\\udffb-\\udfff]",k="(?:\\ud83c[\\udde6-\\uddff]){2}",S="[\\ud800-\\udbff][\\udc00-\\udfff]",O="(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?",T="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",k,S].join("|")+")[\\ufe0e\\ufe0f]?"+O+")*",M="[\\ufe0e\\ufe0f]?"+O+T,C="(?:"+["[^\\ud800-\\udfff]"+w+"?",w,k,S,"[\\ud800-\\udfff]"].join("|")+")",D=RegExp(x+"(?="+x+")|"+C+M,"g"),A=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),$="object"==typeof e&&e&&e.Object===Object&&e,E="object"==typeof self&&self&&self.Object===Object&&self,j=$||E||Function("return this")(),L=Object.prototype,P=L.toString,I=j.Symbol,Y=I?I.prototype:void 0,N=Y?Y.toString:void 0;t.exports=g}).call(e,n(0))},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(){this.$emit("widgets-search-update",{widgetType:this.selectedWidgetType,widgetTitle:this.widgetTitleSearch})}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),a=o(i),s=n(27),c=o(s),u=n(2);a.default.use(n(28));var l={};l[u.WIDGET_ALL]="All ITEMS",l[u.WIDGET_POLL]="poll",l[u.WIDGET_SET]="multi poll set",l[u.WIDGET_SURVEY]="survey",l[u.WIDGET_SLIDESHOW]="slideshow",l[u.WIDGET_TRIVIA_QUIZ]="trivia quiz",l[u.WIDGET_PERSONALITY_QUIZ]="personality quiz",l[u.WIDGET_LIST]="list",l[u.WIDGET_FORM]="standard form",l[u.WIDGET_STORY]="story article",e.default=a.default.component("widget-list",{template:"#opinionstage-widget-list",props:["widgets","preSelectedWidgetType","dataLoading","noMoreData","showSearch"],data:function(){return{selectedWidgetType:null,widgetTitleSearch:"",showMoreBtn:!0,hasData:!0,selectedDraftWidget:{}}},computed:{selectedWidgetTitle:function(){return l[this.selectedWidgetType||this.preSelectedWidgetType]}},watch:{widgetTitleSearch:(0,c.default)(function(){r.call(this)},500),widgets:function(){this.hasData=this.dataLoading||this.widgets.length>0}},methods:{select:function(t){t.isDraft?this.selectedDraftWidget=t:this.$emit("widget-selected",t)},selectWidgetType:function(t){this.selectedWidgetType=t,this.widgetTitleSearch="",r.call(this)},showMore:function(){this.$emit("load-more-widgets")}}})},function(t,e,n){(function(e){function n(t,e,n){function r(e){var n=m,o=v;return m=v=void 0,S=e,y=t.apply(o,n)}function i(t){return S=t,_=setTimeout(l,e),O?r(t):y}function c(t){var n=t-k,o=t-S,r=e-n;return T?w(r,g-o):r}function u(t){var n=t-k,o=t-S;return void 0===k||n>=e||n<0||T&&o>=g}function l(){var t=x();if(u(t))return f(t);_=setTimeout(l,c(t))}function f(t){return _=void 0,M&&m?r(t):(m=v=void 0,y)}function d(){void 0!==_&&clearTimeout(_),S=0,m=k=v=_=void 0}function p(){return void 0===_?y:f(x())}function h(){var t=x(),n=u(t);if(m=arguments,v=this,k=t,n){if(void 0===_)return i(k);if(T)return _=setTimeout(l,e),r(k)}return void 0===_&&(_=setTimeout(l,e)),y}var m,v,g,y,_,k,S=0,O=!1,T=!1,M=!0;if("function"!=typeof t)throw new TypeError(s);return e=a(e)||0,o(n)&&(O=!!n.leading,T="maxWait"in n,g=T?b(a(n.maxWait)||0,e):g,M="trailing"in n?!!n.trailing:M),h.cancel=d,h.flush=p,h}function o(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function r(t){return!!t&&"object"==typeof t}function i(t){return"symbol"==typeof t||r(t)&&_.call(t)==u}function a(t){if("number"==typeof t)return t;if(i(t))return c;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(l,"");var n=d.test(t);return n||p.test(t)?h(t.slice(2),n?2:8):f.test(t)?c:+t}var s="Expected a function",c=NaN,u="[object Symbol]",l=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,h=parseInt,m="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,g=m||v||Function("return this")(),y=Object.prototype,_=y.toString,b=Math.max,w=Math.min,x=function(){return g.Date.now()};t.exports=n}).call(e,n(0))},function(t,e,n){(function(t){!function(t,n){n(e)}(0,function(e){"use strict";function n(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var r="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},i=function(t,e){return e={exports:{}},t(e,e.exports),e.exports}(function(t,e){var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};
|
19 |
//! moment.js
|
20 |
+
!function(n,r){"object"===o(e)?t.exports=r():n.moment=r()}(r,function(){function e(){return Lo.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function i(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function s(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var n,o=[];for(n=0;n<t.length;++n)o.push(e(t[n],n));return o}function f(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){for(var n in e)f(e,n)&&(t[n]=e[n]);return f(e,"toString")&&(t.toString=e.toString),f(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,o){return Me(t,e,n,o,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(t){return null==t._pf&&(t._pf=h()),t._pf}function v(t){if(null==t._isValid){var e=m(t),n=Po.call(e.parsedDateParts,function(t){return null!=t}),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return o;t._isValid=o}return t._isValid}function g(t){var e=p(NaN);return null!=t?d(m(e),t):m(e).userInvalidated=!0,e}function y(t,e){var n,o,r;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=m(e)),s(e._locale)||(t._locale=e._locale),Io.length>0)for(n=0;n<Io.length;n++)o=Io[n],r=e[o],s(r)||(t[o]=r);return t}function _(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Yo&&(Yo=!0,e.updateOffset(this),Yo=!1)}function b(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function w(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function x(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=w(e)),n}function k(t,e,n){var o,r=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),a=0;for(o=0;o<r;o++)(n&&t[o]!==e[o]||!n&&x(t[o])!==x(e[o]))&&a++;return a+i}function S(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function O(t,n){var r=!0;return d(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),r){for(var i,a=[],s=0;s<arguments.length;s++){if(i="","object"===o(arguments[s])){i+="\n["+s+"] ";for(var c in arguments[0])i+=c+": "+arguments[0][c]+", ";i=i.slice(0,-2)}else i=arguments[s];a.push(i)}S(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function T(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),No[t]||(S(n),No[t]=!0)}function M(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t){var e,n;for(n in t)e=t[n],M(e)?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function D(t,e){var n,o=d({},t);for(n in e)f(e,n)&&(i(t[n])&&i(e[n])?(o[n]={},d(o[n],t[n]),d(o[n],e[n])):null!=e[n]?o[n]=e[n]:delete o[n]);for(n in t)f(t,n)&&!f(e,n)&&i(t[n])&&(o[n]=d({},o[n]));return o}function A(t){null!=t&&this.set(t)}function $(t,e,n){var o=this._calendar[t]||this._calendar.sameElse;return M(o)?o.call(e,n):o}function E(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function j(){return this._invalidDate}function L(t){return this._ordinal.replace("%d",t)}function P(t,e,n,o){var r=this._relativeTime[n];return M(r)?r(t,e,n,o):r.replace(/%d/i,t)}function I(t,e){var n=this._relativeTime[t>0?"future":"past"];return M(n)?n(e):n.replace(/%s/i,e)}function Y(t,e){var n=t.toLowerCase();Go[n]=Go[n+"s"]=Go[e]=t}function N(t){return"string"==typeof t?Go[t]||Go[t.toLowerCase()]:void 0}function W(t){var e,n,o={};for(n in t)f(t,n)&&(e=N(n))&&(o[e]=t[n]);return o}function R(t,e){Vo[t]=e}function F(t){var e=[];for(var n in t)e.push({unit:n,priority:Vo[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function U(t,e,n){var o=""+Math.abs(t),r=e-o.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}function H(t,e,n,o){var r=o;"string"==typeof o&&(r=function(){return this[o]()}),t&&(qo[t]=r),e&&(qo[e[0]]=function(){return U(r.apply(this,arguments),e[1],e[2])}),n&&(qo[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function G(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function V(t){var e,n,o=t.match(Bo);for(e=0,n=o.length;e<n;e++)qo[o[e]]?o[e]=qo[o[e]]:o[e]=G(o[e]);return function(e){var r,i="";for(r=0;r<n;r++)i+=M(o[r])?o[r].call(e,t):o[r];return i}}function B(t,e){return t.isValid()?(e=z(e,t.localeData()),Zo[e]=Zo[e]||V(e),Zo[e](t)):t.localeData().invalidDate()}function z(t,e){function n(t){return e.longDateFormat(t)||t}var o=5;for(zo.lastIndex=0;o>=0&&zo.test(t);)t=t.replace(zo,n),zo.lastIndex=0,o-=1;return t}function Z(t,e,n){pr[t]=M(e)?e:function(t,o){return t&&n?n:e}}function q(t,e){return f(pr,t)?pr[t](e._strict,e._locale):new RegExp(J(t))}function J(t){return K(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,o,r){return e||n||o||r}))}function K(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(t,e){var n,o=e;for("string"==typeof t&&(t=[t]),c(e)&&(o=function(t,n){n[e]=x(t)}),n=0;n<t.length;n++)hr[t[n]]=o}function X(t,e){Q(t,function(t,n,o,r){o._w=o._w||{},e(t,o._w,o,r)})}function tt(t,e,n){null!=e&&f(hr,t)&&hr[t](e,n._a,n,t)}function et(t){return nt(t)?366:365}function nt(t){return t%4==0&&t%100!=0||t%400==0}function ot(){return nt(this.year())}function rt(t,n){return function(o){return null!=o?(at(this,t,o),e.updateOffset(this,n),this):it(this,t)}}function it(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function at(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&nt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),lt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function st(t){return t=N(t),M(this[t])?this[t]():this}function ct(t,e){if("object"===(void 0===t?"undefined":o(t))){t=W(t);for(var n=F(t),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit])}else if(t=N(t),M(this[t]))return this[t](e);return this}function ut(t,e){return(t%e+e)%e}function lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=ut(e,12);return t+=(e-n)/12,1===n?nt(t)?29:28:31-n%7%2}function ft(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Tr).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone}function dt(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Tr.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function pt(t,e,n){var o,r,i,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=p([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===e?(r=Sr.call(this._shortMonthsParse,a),-1!==r?r:null):(r=Sr.call(this._longMonthsParse,a),-1!==r?r:null):"MMM"===e?-1!==(r=Sr.call(this._shortMonthsParse,a))?r:(r=Sr.call(this._longMonthsParse,a),-1!==r?r:null):-1!==(r=Sr.call(this._longMonthsParse,a))?r:(r=Sr.call(this._shortMonthsParse,a),-1!==r?r:null)}function ht(t,e,n){var o,r,i;if(this._monthsParseExact)return pt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=p([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[o].test(t))return o;if(n&&"MMM"===e&&this._shortMonthsParse[o].test(t))return o;if(!n&&this._monthsParse[o].test(t))return o}}function mt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=x(e);else if(e=t.localeData().monthsParse(e),!c(e))return t;return n=Math.min(t.date(),lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function vt(t){return null!=t?(mt(this,t),e.updateOffset(this,!0),this):it(this,"Month")}function gt(){return lt(this.year(),this.month())}function yt(t){return this._monthsParseExact?(f(this,"_monthsRegex")||bt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Dr),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function _t(t){return this._monthsParseExact?(f(this,"_monthsRegex")||bt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Ar),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function bt(){function t(t,e){return e.length-t.length}var e,n,o=[],r=[],i=[];for(e=0;e<12;e++)n=p([2e3,e]),o.push(this.monthsShort(n,"")),r.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(o.sort(t),r.sort(t),i.sort(t),e=0;e<12;e++)o[e]=K(o[e]),r[e]=K(r[e]);for(e=0;e<24;e++)i[e]=K(i[e]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function wt(t,e,n,o,r,i,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,o,r,i,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,o,r,i,a),s}function xt(t){var e;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function kt(t,e,n){var o=7+e-n;return-(7+xt(t,0,o).getUTCDay()-e)%7+o-1}function St(t,e,n,o,r){var i,a,s=(7+n-o)%7,c=kt(t,o,r),u=1+7*(e-1)+s+c;return u<=0?(i=t-1,a=et(i)+u):u>et(t)?(i=t+1,a=u-et(t)):(i=t,a=u),{year:i,dayOfYear:a}}function Ot(t,e,n){var o,r,i=kt(t.year(),e,n),a=Math.floor((t.dayOfYear()-i-1)/7)+1;return a<1?(r=t.year()-1,o=a+Tt(r,e,n)):a>Tt(t.year(),e,n)?(o=a-Tt(t.year(),e,n),r=t.year()+1):(r=t.year(),o=a),{week:o,year:r}}function Tt(t,e,n){var o=kt(t,e,n),r=kt(t+1,e,n);return(et(t)-o+r)/7}function Mt(t){return Ot(t,this._week.dow,this._week.doy).week}function Ct(){return this._week.dow}function Dt(){return this._week.doy}function At(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function $t(t){var e=Ot(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Et(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function jt(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Lt(t,e){return t.slice(e,7).concat(t.slice(0,e))}function Pt(t,e){var n=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Lt(n,this._week.dow):t?n[t.day()]:n}function It(t){return!0===t?Lt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Yt(t){return!0===t?Lt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Nt(t,e,n){var o,r,i,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=p([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===e?(r=Sr.call(this._weekdaysParse,a),-1!==r?r:null):"ddd"===e?(r=Sr.call(this._shortWeekdaysParse,a),-1!==r?r:null):(r=Sr.call(this._minWeekdaysParse,a),-1!==r?r:null):"dddd"===e?-1!==(r=Sr.call(this._weekdaysParse,a))?r:-1!==(r=Sr.call(this._shortWeekdaysParse,a))?r:(r=Sr.call(this._minWeekdaysParse,a),-1!==r?r:null):"ddd"===e?-1!==(r=Sr.call(this._shortWeekdaysParse,a))?r:-1!==(r=Sr.call(this._weekdaysParse,a))?r:(r=Sr.call(this._minWeekdaysParse,a),-1!==r?r:null):-1!==(r=Sr.call(this._minWeekdaysParse,a))?r:-1!==(r=Sr.call(this._weekdaysParse,a))?r:(r=Sr.call(this._shortWeekdaysParse,a),-1!==r?r:null)}function Wt(t,e,n){var o,r,i;if(this._weekdaysParseExact)return Nt.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=p([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[o].test(t))return o;if(n&&"ddd"===e&&this._shortWeekdaysParse[o].test(t))return o;if(n&&"dd"===e&&this._minWeekdaysParse[o].test(t))return o;if(!n&&this._weekdaysParse[o].test(t))return o}}function Rt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Et(t,this.localeData()),this.add(t-e,"d")):e}function Ft(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ut(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=jt(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ht(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Pr),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gt(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ir),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Vt(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Yr),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Bt(){function t(t,e){return e.length-t.length}var e,n,o,r,i,a=[],s=[],c=[],u=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(o),s.push(r),c.push(i),u.push(o),u.push(r),u.push(i);for(a.sort(t),s.sort(t),c.sort(t),u.sort(t),e=0;e<7;e++)s[e]=K(s[e]),c[e]=K(c[e]),u[e]=K(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function zt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function qt(t,e){H(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Jt(t,e){return e._meridiemParse}function Kt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Qt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Xt(t){return t?t.toLowerCase().replace("_","-"):t}function te(t){for(var e,n,o,r,i=0;i<t.length;){for(r=Xt(t[i]).split("-"),e=r.length,n=Xt(t[i+1]),n=n?n.split("-"):null;e>0;){if(o=ee(r.slice(0,e).join("-")))return o;if(n&&n.length>=e&&k(r,n,!0)>=e-1)break;e--}i++}return Nr}function ee(e){var o=null;if(!Ur[e]&&t&&t.exports)try{o=Nr._abbr;n("./locale/"+e),ne(o)}catch(t){}return Ur[e]}function ne(t,e){var n;return t&&(n=s(e)?ie(t):oe(t,e),n?Nr=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Nr._abbr}function oe(t,e){if(null!==e){var n,o=Fr;if(e.abbr=t,null!=Ur[t])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=Ur[t]._config;else if(null!=e.parentLocale)if(null!=Ur[e.parentLocale])o=Ur[e.parentLocale]._config;else{if(null==(n=ee(e.parentLocale)))return Hr[e.parentLocale]||(Hr[e.parentLocale]=[]),Hr[e.parentLocale].push({name:t,config:e}),null;o=n._config}return Ur[t]=new A(D(o,e)),Hr[t]&&Hr[t].forEach(function(t){oe(t.name,t.config)}),ne(t),Ur[t]}return delete Ur[t],null}function re(t,e){if(null!=e){var n,o,r=Fr;o=ee(t),null!=o&&(r=o._config),e=D(r,e),n=new A(e),n.parentLocale=Ur[t],Ur[t]=n,ne(t)}else null!=Ur[t]&&(null!=Ur[t].parentLocale?Ur[t]=Ur[t].parentLocale:null!=Ur[t]&&delete Ur[t]);return Ur[t]}function ie(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Nr;if(!r(t)){if(e=ee(t))return e;t=[t]}return te(t)}function ae(){return Wo(Ur)}function se(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[vr]<0||n[vr]>11?vr:n[gr]<1||n[gr]>lt(n[mr],n[vr])?gr:n[yr]<0||n[yr]>24||24===n[yr]&&(0!==n[_r]||0!==n[br]||0!==n[wr])?yr:n[_r]<0||n[_r]>59?_r:n[br]<0||n[br]>59?br:n[wr]<0||n[wr]>999?wr:-1,m(t)._overflowDayOfYear&&(e<mr||e>gr)&&(e=gr),m(t)._overflowWeeks&&-1===e&&(e=xr),m(t)._overflowWeekday&&-1===e&&(e=kr),m(t).overflow=e),t}function ce(t,e,n){return null!=t?t:null!=e?e:n}function ue(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function le(t){var e,n,o,r,i,a=[];if(!t._d){for(o=ue(t),t._w&&null==t._a[gr]&&null==t._a[vr]&&fe(t),null!=t._dayOfYear&&(i=ce(t._a[mr],o[mr]),(t._dayOfYear>et(i)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=xt(i,0,t._dayOfYear),t._a[vr]=n.getUTCMonth(),t._a[gr]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=o[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[yr]&&0===t._a[_r]&&0===t._a[br]&&0===t._a[wr]&&(t._nextDay=!0,t._a[yr]=0),t._d=(t._useUTC?xt:wt).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[yr]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(m(t).weekdayMismatch=!0)}}function fe(t){var e,n,o,r,i,a,s,c;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)i=1,a=4,n=ce(e.GG,t._a[mr],Ot(Ce(),1,4).year),o=ce(e.W,1),((r=ce(e.E,1))<1||r>7)&&(c=!0);else{i=t._locale._week.dow,a=t._locale._week.doy;var u=Ot(Ce(),i,a);n=ce(e.gg,t._a[mr],u.year),o=ce(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(c=!0):null!=e.e?(r=e.e+i,(e.e<0||e.e>6)&&(c=!0)):r=i}o<1||o>Tt(n,i,a)?m(t)._overflowWeeks=!0:null!=c?m(t)._overflowWeekday=!0:(s=St(n,o,r,i,a),t._a[mr]=s.year,t._dayOfYear=s.dayOfYear)}function de(t){var e,n,o,r,i,a,s=t._i,c=Gr.exec(s)||Vr.exec(s);if(c){for(m(t).iso=!0,e=0,n=zr.length;e<n;e++)if(zr[e][1].exec(c[1])){r=zr[e][0],o=!1!==zr[e][2];break}if(null==r)return void(t._isValid=!1);if(c[3]){for(e=0,n=Zr.length;e<n;e++)if(Zr[e][1].exec(c[3])){i=(c[2]||" ")+Zr[e][0];break}if(null==i)return void(t._isValid=!1)}if(!o&&null!=i)return void(t._isValid=!1);if(c[4]){if(!Br.exec(c[4]))return void(t._isValid=!1);a="Z"}t._f=r+(i||"")+(a||""),be(t)}else t._isValid=!1}function pe(t,e,n,o,r,i){var a=[he(t),Cr.indexOf(e),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function he(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function me(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ve(t,e,n){if(t){if(jr.indexOf(t)!==new Date(e[0],e[1],e[2]).getDay())return m(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function ge(t,e,n){if(t)return Kr[t];if(e)return 0;var o=parseInt(n,10),r=o%100;return(o-r)/100*60+r}function ye(t){var e=Jr.exec(me(t._i));if(e){var n=pe(e[4],e[3],e[2],e[5],e[6],e[7]);if(!ve(e[1],n,t))return;t._a=n,t._tzm=ge(e[8],e[9],e[10]),t._d=xt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function _e(t){var n=qr.exec(t._i);if(null!==n)return void(t._d=new Date(+n[1]));de(t),!1===t._isValid&&(delete t._isValid,ye(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function be(t){if(t._f===e.ISO_8601)return void de(t);if(t._f===e.RFC_2822)return void ye(t);t._a=[],m(t).empty=!0;var n,o,r,i,a,s=""+t._i,c=s.length,u=0;for(r=z(t._f,t._locale).match(Bo)||[],n=0;n<r.length;n++)i=r[n],o=(s.match(q(i,t))||[])[0],o&&(a=s.substr(0,s.indexOf(o)),a.length>0&&m(t).unusedInput.push(a),s=s.slice(s.indexOf(o)+o.length),u+=o.length),qo[i]?(o?m(t).empty=!1:m(t).unusedTokens.push(i),tt(i,o,t)):t._strict&&!o&&m(t).unusedTokens.push(i);m(t).charsLeftOver=c-u,s.length>0&&m(t).unusedInput.push(s),t._a[yr]<=12&&!0===m(t).bigHour&&t._a[yr]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[yr]=we(t._locale,t._a[yr],t._meridiem),le(t),se(t)}function we(t,e,n){var o;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(o=t.isPM(n),o&&e<12&&(e+=12),o||12!==e||(e=0),e):e}function xe(t){var e,n,o,r,i;if(0===t._f.length)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)i=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],be(e),v(e)&&(i+=m(e).charsLeftOver,i+=10*m(e).unusedTokens.length,m(e).score=i,(null==o||i<o)&&(o=i,n=e));d(t,n||e)}function ke(t){if(!t._d){var e=W(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),le(t)}}function Se(t){var e=new _(se(Oe(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Oe(t){var e=t._i,n=t._f;return t._locale=t._locale||ie(t._l),null===e||void 0===n&&""===e?g({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),b(e)?new _(se(e)):(u(e)?t._d=e:r(n)?xe(t):n?be(t):Te(t),v(t)||(t._d=null),t))}function Te(t){var n=t._i;s(n)?t._d=new Date(e.now()):u(n)?t._d=new Date(n.valueOf()):"string"==typeof n?_e(t):r(n)?(t._a=l(n.slice(0),function(t){return parseInt(t,10)}),le(t)):i(n)?ke(t):c(n)?t._d=new Date(n):e.createFromInputFallback(t)}function Me(t,e,n,o,s){var c={};return!0!==n&&!1!==n||(o=n,n=void 0),(i(t)&&a(t)||r(t)&&0===t.length)&&(t=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=s,c._l=n,c._i=t,c._f=e,c._strict=o,Se(c)}function Ce(t,e,n,o){return Me(t,e,n,o,!1)}function De(t,e){var n,o;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Ce();for(n=e[0],o=1;o<e.length;++o)e[o].isValid()&&!e[o][t](n)||(n=e[o]);return n}function Ae(){return De("isBefore",[].slice.call(arguments,0))}function $e(){return De("isAfter",[].slice.call(arguments,0))}function Ee(t){for(var e in t)if(-1===Sr.call(ei,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,o=0;o<ei.length;++o)if(t[ei[o]]){if(n)return!1;parseFloat(t[ei[o]])!==x(t[ei[o]])&&(n=!0)}return!0}function je(){return this._isValid}function Le(){return Xe(NaN)}function Pe(t){var e=W(t),n=e.year||0,o=e.quarter||0,r=e.month||0,i=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,c=e.minute||0,u=e.second||0,l=e.millisecond||0;this._isValid=Ee(e),this._milliseconds=+l+1e3*u+6e4*c+1e3*s*60*60,this._days=+a+7*i,this._months=+r+3*o+12*n,this._data={},this._locale=ie(),this._bubble()}function Ie(t){return t instanceof Pe}function Ye(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ne(t,e){H(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+U(~~(t/60),2)+e+U(~~t%60,2)})}function We(t,e){var n=(e||"").match(t);if(null===n)return null;var o=n[n.length-1]||[],r=(o+"").match(ni)||["-",0,0],i=60*r[1]+x(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Re(t,n){var o,r;return n._isUTC?(o=n.clone(),r=(b(t)||u(t)?t.valueOf():Ce(t).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+r),e.updateOffset(o,!1),o):Ce(t).local()}function Fe(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ue(t,n,o){var r,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=We(lr,t)))return this}else Math.abs(t)<16&&!o&&(t*=60);return!this._isUTC&&n&&(r=Fe(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!n||this._changeInProgress?rn(this,Xe(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Fe(this)}function He(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Ge(t){return this.utcOffset(0,t)}function Ve(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Fe(this),"m")),this}function Be(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=We(ur,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function ze(t){return!!this.isValid()&&(t=t?Ce(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Ze(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qe(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),t=Oe(t),t._a){var e=t._isUTC?p(t._a):Ce(t._a);this._isDSTShifted=this.isValid()&&k(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Je(){return!!this.isValid()&&!this._isUTC}function Ke(){return!!this.isValid()&&this._isUTC}function Qe(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Xe(t,e){var n,r,i,a=t,s=null;return Ie(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:c(t)?(a={},e?a[e]=t:a.milliseconds=t):(s=oi.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:x(s[gr])*n,h:x(s[yr])*n,m:x(s[_r])*n,s:x(s[br])*n,ms:x(Ye(1e3*s[wr]))*n}):(s=ri.exec(t))?(n="-"===s[1]?-1:1,a={y:tn(s[2],n),M:tn(s[3],n),w:tn(s[4],n),d:tn(s[5],n),h:tn(s[6],n),m:tn(s[7],n),s:tn(s[8],n)}):null==a?a={}:"object"===(void 0===a?"undefined":o(a))&&("from"in a||"to"in a)&&(i=nn(Ce(a.from),Ce(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new Pe(a),Ie(t)&&f(t,"_locale")&&(r._locale=t._locale),r}function tn(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function en(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function nn(t,e){var n;return t.isValid()&&e.isValid()?(e=Re(e,t),t.isBefore(e)?n=en(t,e):(n=en(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function on(t,e){return function(n,o){var r,i;return null===o||isNaN(+o)||(T(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),n="string"==typeof n?+n:n,r=Xe(n,o),rn(this,r,t),this}}function rn(t,n,o,r){var i=n._milliseconds,a=Ye(n._days),s=Ye(n._months);t.isValid()&&(r=null==r||r,s&&mt(t,it(t,"Month")+s*o),a&&at(t,"Date",it(t,"Date")+a*o),i&&t._d.setTime(t._d.valueOf()+i*o),r&&e.updateOffset(t,a||s))}function an(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function sn(t,n){var o=t||Ce(),r=Re(o,this).startOf("day"),i=e.calendarFormat(this,r)||"sameElse",a=n&&(M(n[i])?n[i].call(this,o):n[i]);return this.format(a||this.localeData().calendar(i,this,Ce(o)))}function cn(){return new _(this)}function un(t,e){var n=b(t)?t:Ce(t);return!(!this.isValid()||!n.isValid())&&(e=N(e)||"millisecond","millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function ln(t,e){var n=b(t)?t:Ce(t);return!(!this.isValid()||!n.isValid())&&(e=N(e)||"millisecond","millisecond"===e?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function fn(t,e,n,o){var r=b(t)?t:Ce(t),i=b(e)?e:Ce(e);return!!(this.isValid()&&r.isValid()&&i.isValid())&&(o=o||"()",("("===o[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===o[1]?this.isBefore(i,n):!this.isAfter(i,n)))}function dn(t,e){var n,o=b(t)?t:Ce(t);return!(!this.isValid()||!o.isValid())&&(e=N(e)||"millisecond","millisecond"===e?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function pn(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function hn(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function mn(t,e,n){var o,r,i;if(!this.isValid())return NaN;if(o=Re(t,this),!o.isValid())return NaN;switch(r=6e4*(o.utcOffset()-this.utcOffset()),e=N(e)){case"year":i=vn(this,o)/12;break;case"month":i=vn(this,o);break;case"quarter":i=vn(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-r)/864e5;break;case"week":i=(this-o-r)/6048e5;break;default:i=this-o}return n?i:w(i)}function vn(t,e){var n,o,r=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(r,"months");return e-i<0?(n=t.clone().add(r-1,"months"),o=(e-i)/(i-n)):(n=t.clone().add(r+1,"months"),o=(e-i)/(n-i)),-(r+o)||0}function gn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function yn(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?B(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _n(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(n+o+"-MM-DD[T]HH:mm:ss.SSS"+r)}function bn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=B(this,t);return this.localeData().postformat(n)}function wn(t,e){return this.isValid()&&(b(t)&&t.isValid()||Ce(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function xn(t){return this.from(Ce(),t)}function kn(t,e){return this.isValid()&&(b(t)&&t.isValid()||Ce(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Sn(t){return this.to(Ce(),t)}function On(t){var e;return void 0===t?this._locale._abbr:(e=ie(t),null!=e&&(this._locale=e),this)}function Tn(){return this._locale}function Mn(t,e){return(t%e+e)%e}function Cn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-fi:new Date(t,e,n).valueOf()}function Dn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-fi:Date.UTC(t,e,n)}function An(t){var n;if(void 0===(t=N(t))||"millisecond"===t||!this.isValid())return this;var o=this._isUTC?Dn:Cn;switch(t){case"year":n=o(this.year(),0,1);break;case"quarter":n=o(this.year(),this.month()-this.month()%3,1);break;case"month":n=o(this.year(),this.month(),1);break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=o(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=Mn(n+(this._isUTC?0:this.utcOffset()*ui),li);break;case"minute":n=this._d.valueOf(),n-=Mn(n,ui);break;case"second":n=this._d.valueOf(),n-=Mn(n,ci)}return this._d.setTime(n),e.updateOffset(this,!0),this}function $n(t){var n;if(void 0===(t=N(t))||"millisecond"===t||!this.isValid())return this;var o=this._isUTC?Dn:Cn;switch(t){case"year":n=o(this.year()+1,0,1)-1;break;case"quarter":n=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=o(this.year(),this.month()+1,1)-1;break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=li-Mn(n+(this._isUTC?0:this.utcOffset()*ui),li)-1;break;case"minute":n=this._d.valueOf(),n+=ui-Mn(n,ui)-1;break;case"second":n=this._d.valueOf(),n+=ci-Mn(n,ci)-1}return this._d.setTime(n),e.updateOffset(this,!0),this}function En(){return this._d.valueOf()-6e4*(this._offset||0)}function jn(){return Math.floor(this.valueOf()/1e3)}function Ln(){return new Date(this.valueOf())}function Pn(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function In(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Yn(){return this.isValid()?this.toISOString():null}function Nn(){return v(this)}function Wn(){return d({},m(this))}function Rn(){return m(this).overflow}function Fn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Un(t,e){H(0,[t,t.length],0,e)}function Hn(t){return zn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Gn(t){return zn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Vn(){return Tt(this.year(),1,4)}function Bn(){var t=this.localeData()._week;return Tt(this.year(),t.dow,t.doy)}function zn(t,e,n,o,r){var i;return null==t?Ot(this,o,r).year:(i=Tt(t,o,r),e>i&&(e=i),Zn.call(this,t,e,n,o,r))}function Zn(t,e,n,o,r){var i=St(t,e,n,o,r),a=xt(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function qn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Jn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Kn(t,e){e[wr]=x(1e3*("0."+t))}function Qn(){return this._isUTC?"UTC":""}function Xn(){return this._isUTC?"Coordinated Universal Time":""}function to(t){return Ce(1e3*t)}function eo(){return Ce.apply(null,arguments).parseZone()}function no(t){return t}function oo(t,e,n,o){var r=ie(),i=p().set(o,e);return r[n](i,t)}function ro(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return oo(t,e,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=oo(t,o,n,"month");return r}function io(t,e,n,o){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var r=ie(),i=t?r._week.dow:0;if(null!=n)return oo(e,(n+i)%7,o,"day");var a,s=[];for(a=0;a<7;a++)s[a]=oo(e,(a+i)%7,o,"day");return s}function ao(t,e){return ro(t,e,"months")}function so(t,e){return ro(t,e,"monthsShort")}function co(t,e,n){return io(t,e,n,"weekdays")}function uo(t,e,n){return io(t,e,n,"weekdaysShort")}function lo(t,e,n){return io(t,e,n,"weekdaysMin")}function fo(){var t=this._data;return this._milliseconds=_i(this._milliseconds),this._days=_i(this._days),this._months=_i(this._months),t.milliseconds=_i(t.milliseconds),t.seconds=_i(t.seconds),t.minutes=_i(t.minutes),t.hours=_i(t.hours),t.months=_i(t.months),t.years=_i(t.years),this}function po(t,e,n,o){var r=Xe(e,n);return t._milliseconds+=o*r._milliseconds,t._days+=o*r._days,t._months+=o*r._months,t._bubble()}function ho(t,e){return po(this,t,e,1)}function mo(t,e){return po(this,t,e,-1)}function vo(t){return t<0?Math.floor(t):Math.ceil(t)}function go(){var t,e,n,o,r,i=this._milliseconds,a=this._days,s=this._months,c=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*vo(_o(s)+a),a=0,s=0),c.milliseconds=i%1e3,t=w(i/1e3),c.seconds=t%60,e=w(t/60),c.minutes=e%60,n=w(e/60),c.hours=n%24,a+=w(n/24),r=w(yo(a)),s+=r,a-=vo(_o(r)),o=w(s/12),s%=12,c.days=a,c.months=s,c.years=o,this}function yo(t){return 4800*t/146097}function _o(t){return 146097*t/4800}function bo(t){if(!this.isValid())return NaN;var e,n,o=this._milliseconds;if("month"===(t=N(t))||"quarter"===t||"year"===t)switch(e=this._days+o/864e5,n=this._months+yo(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(_o(this._months)),t){case"week":return e/7+o/6048e5;case"day":return e+o/864e5;case"hour":return 24*e+o/36e5;case"minute":return 1440*e+o/6e4;case"second":return 86400*e+o/1e3;case"millisecond":return Math.floor(864e5*e)+o;default:throw new Error("Unknown unit "+t)}}function wo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN}function xo(t){return function(){return this.as(t)}}function ko(){return Xe(this)}function So(t){return t=N(t),this.isValid()?this[t+"s"]():NaN}function Oo(t){return function(){return this.isValid()?this._data[t]:NaN}}function To(){return w(this.days()/7)}function Mo(t,e,n,o,r){return r.relativeTime(e||1,!!n,t,o)}function Co(t,e,n){var o=Xe(t).abs(),r=Ii(o.as("s")),i=Ii(o.as("m")),a=Ii(o.as("h")),s=Ii(o.as("d")),c=Ii(o.as("M")),u=Ii(o.as("y")),l=r<=Yi.ss&&["s",r]||r<Yi.s&&["ss",r]||i<=1&&["m"]||i<Yi.m&&["mm",i]||a<=1&&["h"]||a<Yi.h&&["hh",a]||s<=1&&["d"]||s<Yi.d&&["dd",s]||c<=1&&["M"]||c<Yi.M&&["MM",c]||u<=1&&["y"]||["yy",u];return l[2]=e,l[3]=+t>0,l[4]=n,Mo.apply(null,l)}function Do(t){return void 0===t?Ii:"function"==typeof t&&(Ii=t,!0)}function Ao(t,e){return void 0!==Yi[t]&&(void 0===e?Yi[t]:(Yi[t]=e,"s"===t&&(Yi.ss=e-1),!0))}function $o(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=Co(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Eo(t){return(t>0)-(t<0)||+t}function jo(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,o=Ni(this._milliseconds)/1e3,r=Ni(this._days),i=Ni(this._months);t=w(o/60),e=w(t/60),o%=60,t%=60,n=w(i/12),i%=12;var a=n,s=i,c=r,u=e,l=t,f=o?o.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var p=d<0?"-":"",h=Eo(this._months)!==Eo(d)?"-":"",m=Eo(this._days)!==Eo(d)?"-":"",v=Eo(this._milliseconds)!==Eo(d)?"-":"";return p+"P"+(a?h+a+"Y":"")+(s?h+s+"M":"")+(c?m+c+"D":"")+(u||l||f?"T":"")+(u?v+u+"H":"")+(l?v+l+"M":"")+(f?v+f+"S":"")}var Lo,Po;Po=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,o=0;o<n;o++)if(o in e&&t.call(this,e[o],o,e))return!0;return!1};var Io=e.momentProperties=[],Yo=!1,No={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var Wo;Wo=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)f(t,e)&&n.push(e);return n};var Ro={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Fo={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Uo=/\d{1,2}/,Ho={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Go={},Vo={},Bo=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,zo=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Zo={},qo={},Jo=/\d/,Ko=/\d\d/,Qo=/\d{3}/,Xo=/\d{4}/,tr=/[+-]?\d{6}/,er=/\d\d?/,nr=/\d\d\d\d?/,or=/\d\d\d\d\d\d?/,rr=/\d{1,3}/,ir=/\d{1,4}/,ar=/[+-]?\d{1,6}/,sr=/\d+/,cr=/[+-]?\d+/,ur=/Z|[+-]\d\d:?\d\d/gi,lr=/Z|[+-]\d\d(?::?\d\d)?/gi,fr=/[+-]?\d+(\.\d{1,3})?/,dr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,pr={},hr={},mr=0,vr=1,gr=2,yr=3,_r=4,br=5,wr=6,xr=7,kr=8;H("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),H(0,["YY",2],0,function(){return this.year()%100}),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),Y("year","y"),R("year",1),Z("Y",cr),Z("YY",er,Ko),Z("YYYY",ir,Xo),Z("YYYYY",ar,tr),Z("YYYYYY",ar,tr),Q(["YYYYY","YYYYYY"],mr),Q("YYYY",function(t,n){n[mr]=2===t.length?e.parseTwoDigitYear(t):x(t)}),Q("YY",function(t,n){n[mr]=e.parseTwoDigitYear(t)}),Q("Y",function(t,e){e[mr]=parseInt(t,10)}),e.parseTwoDigitYear=function(t){return x(t)+(x(t)>68?1900:2e3)};var Sr,Or=rt("FullYear",!0);Sr=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},H("M",["MM",2],"Mo",function(){return this.month()+1}),H("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),H("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Y("month","M"),R("month",8),Z("M",er),Z("MM",er,Ko),Z("MMM",function(t,e){return e.monthsShortRegex(t)}),Z("MMMM",function(t,e){return e.monthsRegex(t)}),Q(["M","MM"],function(t,e){e[vr]=x(t)-1}),Q(["MMM","MMMM"],function(t,e,n,o){var r=n._locale.monthsParse(t,o,n._strict);null!=r?e[vr]=r:m(n).invalidMonth=t});var Tr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Mr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Cr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Dr=dr,Ar=dr;H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),R("week",5),R("isoWeek",5),Z("w",er),Z("ww",er,Ko),Z("W",er),Z("WW",er,Ko),X(["w","ww","W","WW"],function(t,e,n,o){e[o.substr(0,1)]=x(t)});var $r={dow:0,doy:6};H("d",0,"do","day"),H("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),H("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),H("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),Z("d",er),Z("e",er),Z("E",er),Z("dd",function(t,e){return e.weekdaysMinRegex(t)}),Z("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Z("dddd",function(t,e){return e.weekdaysRegex(t)}),X(["dd","ddd","dddd"],function(t,e,n,o){var r=n._locale.weekdaysParse(t,o,n._strict);null!=r?e.d=r:m(n).invalidWeekday=t}),X(["d","e","E"],function(t,e,n,o){e[o]=x(t)});var Er="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Pr=dr,Ir=dr,Yr=dr;H("H",["HH",2],0,"hour"),H("h",["hh",2],0,zt),H("k",["kk",2],0,Zt),H("hmm",0,0,function(){return""+zt.apply(this)+U(this.minutes(),2)}),H("hmmss",0,0,function(){return""+zt.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),qt("a",!0),qt("A",!1),Y("hour","h"),R("hour",13),Z("a",Jt),Z("A",Jt),Z("H",er),Z("h",er),Z("k",er),Z("HH",er,Ko),Z("hh",er,Ko),Z("kk",er,Ko),Z("hmm",nr),Z("hmmss",or),Z("Hmm",nr),Z("Hmmss",or),Q(["H","HH"],yr),Q(["k","kk"],function(t,e,n){var o=x(t);e[yr]=24===o?0:o}),Q(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Q(["h","hh"],function(t,e,n){e[yr]=x(t),m(n).bigHour=!0}),Q("hmm",function(t,e,n){var o=t.length-2;e[yr]=x(t.substr(0,o)),e[_r]=x(t.substr(o)),m(n).bigHour=!0}),Q("hmmss",function(t,e,n){var o=t.length-4,r=t.length-2;e[yr]=x(t.substr(0,o)),e[_r]=x(t.substr(o,2)),e[br]=x(t.substr(r)),m(n).bigHour=!0}),Q("Hmm",function(t,e,n){var o=t.length-2;e[yr]=x(t.substr(0,o)),e[_r]=x(t.substr(o))}),Q("Hmmss",function(t,e,n){var o=t.length-4,r=t.length-2;e[yr]=x(t.substr(0,o)),e[_r]=x(t.substr(o,2)),e[br]=x(t.substr(r))});var Nr,Wr=/[ap]\.?m?\.?/i,Rr=rt("Hours",!0),Fr={calendar:Ro,longDateFormat:Fo,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Uo,relativeTime:Ho,months:Mr,monthsShort:Cr,week:$r,weekdays:Er,weekdaysMin:Lr,weekdaysShort:jr,meridiemParse:Wr},Ur={},Hr={},Gr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Vr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Br=/Z|[+-]\d\d(?::?\d\d)?/,zr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Zr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],qr=/^\/?Date\((\-?\d+)/i,Jr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Kr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};e.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Qr=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ce.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()}),Xr=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ce.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:g()}),ti=function(){return Date.now?Date.now():+new Date},ei=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ne("Z",":"),Ne("ZZ",""),Z("Z",lr),Z("ZZ",lr),Q(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=We(lr,t)});var ni=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var oi=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ri=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Xe.fn=Pe.prototype,Xe.invalid=Le;var ii=on(1,"add"),ai=on(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var si=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)}),ci=1e3,ui=60*ci,li=60*ui,fi=3506328*li;H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Un("gggg","weekYear"),Un("ggggg","weekYear"),Un("GGGG","isoWeekYear"),Un("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),Z("G",cr),Z("g",cr),Z("GG",er,Ko),Z("gg",er,Ko),Z("GGGG",ir,Xo),Z("gggg",ir,Xo),Z("GGGGG",ar,tr),Z("ggggg",ar,tr),X(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,o){e[o.substr(0,2)]=x(t)}),X(["gg","GG"],function(t,n,o,r){n[r]=e.parseTwoDigitYear(t)}),H("Q",0,"Qo","quarter"),Y("quarter","Q"),R("quarter",7),Z("Q",Jo),Q("Q",function(t,e){e[vr]=3*(x(t)-1)}),H("D",["DD",2],"Do","date"),Y("date","D"),R("date",9),Z("D",er),Z("DD",er,Ko),Z("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Q(["D","DD"],gr),Q("Do",function(t,e){e[gr]=x(t.match(er)[0])});var di=rt("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),R("dayOfYear",4),Z("DDD",rr),Z("DDDD",Qo),Q(["DDD","DDDD"],function(t,e,n){n._dayOfYear=x(t)}),H("m",["mm",2],0,"minute"),Y("minute","m"),R("minute",14),Z("m",er),Z("mm",er,Ko),Q(["m","mm"],_r);var pi=rt("Minutes",!1);H("s",["ss",2],0,"second"),Y("second","s"),R("second",15),Z("s",er),Z("ss",er,Ko),Q(["s","ss"],br);var hi=rt("Seconds",!1);H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Y("millisecond","ms"),R("millisecond",16),Z("S",rr,Jo),Z("SS",rr,Ko),Z("SSS",rr,Qo);var mi;for(mi="SSSS";mi.length<=9;mi+="S")Z(mi,sr);for(mi="S";mi.length<=9;mi+="S")Q(mi,Kn);var vi=rt("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var gi=_.prototype;gi.add=ii,gi.calendar=sn,gi.clone=cn,gi.diff=mn,gi.endOf=$n,gi.format=bn,gi.from=wn,gi.fromNow=xn,gi.to=kn,gi.toNow=Sn,gi.get=st,gi.invalidAt=Rn,gi.isAfter=un,gi.isBefore=ln,gi.isBetween=fn,gi.isSame=dn,gi.isSameOrAfter=pn,gi.isSameOrBefore=hn,gi.isValid=Nn,gi.lang=si,gi.locale=On,gi.localeData=Tn,gi.max=Xr,gi.min=Qr,gi.parsingFlags=Wn,gi.set=ct,gi.startOf=An,gi.subtract=ai,gi.toArray=Pn,gi.toObject=In,gi.toDate=Ln,gi.toISOString=yn,gi.inspect=_n,gi.toJSON=Yn,gi.toString=gn,gi.unix=jn,gi.valueOf=En,gi.creationData=Fn,gi.year=Or,gi.isLeapYear=ot,gi.weekYear=Hn,gi.isoWeekYear=Gn,gi.quarter=gi.quarters=qn,gi.month=vt,gi.daysInMonth=gt,gi.week=gi.weeks=At,gi.isoWeek=gi.isoWeeks=$t,gi.weeksInYear=Bn,gi.isoWeeksInYear=Vn,gi.date=di,gi.day=gi.days=Rt,gi.weekday=Ft,gi.isoWeekday=Ut,gi.dayOfYear=Jn,gi.hour=gi.hours=Rr,gi.minute=gi.minutes=pi,gi.second=gi.seconds=hi,gi.millisecond=gi.milliseconds=vi,gi.utcOffset=Ue,gi.utc=Ge,gi.local=Ve,gi.parseZone=Be,gi.hasAlignedHourOffset=ze,gi.isDST=Ze,gi.isLocal=Je,gi.isUtcOffset=Ke,gi.isUtc=Qe,gi.isUTC=Qe,gi.zoneAbbr=Qn,gi.zoneName=Xn,gi.dates=O("dates accessor is deprecated. Use date instead.",di),gi.months=O("months accessor is deprecated. Use month instead",vt),gi.years=O("years accessor is deprecated. Use year instead",Or),gi.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",He),gi.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qe);var yi=A.prototype;yi.calendar=$,yi.longDateFormat=E,yi.invalidDate=j,yi.ordinal=L,yi.preparse=no,yi.postformat=no,yi.relativeTime=P,yi.pastFuture=I,yi.set=C,yi.months=ft,yi.monthsShort=dt,yi.monthsParse=ht,yi.monthsRegex=_t,yi.monthsShortRegex=yt,yi.week=Mt,yi.firstDayOfYear=Dt,yi.firstDayOfWeek=Ct,yi.weekdays=Pt,yi.weekdaysMin=Yt,yi.weekdaysShort=It,yi.weekdaysParse=Wt,yi.weekdaysRegex=Ht,yi.weekdaysShortRegex=Gt,yi.weekdaysMinRegex=Vt,yi.isPM=Kt,yi.meridiem=Qt,ne("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===x(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),e.lang=O("moment.lang is deprecated. Use moment.locale instead.",ne),e.langData=O("moment.langData is deprecated. Use moment.localeData instead.",ie);var _i=Math.abs,bi=xo("ms"),wi=xo("s"),xi=xo("m"),ki=xo("h"),Si=xo("d"),Oi=xo("w"),Ti=xo("M"),Mi=xo("Q"),Ci=xo("y"),Di=Oo("milliseconds"),Ai=Oo("seconds"),$i=Oo("minutes"),Ei=Oo("hours"),ji=Oo("days"),Li=Oo("months"),Pi=Oo("years"),Ii=Math.round,Yi={ss:44,s:45,m:45,h:22,d:26,M:11},Ni=Math.abs,Wi=Pe.prototype;return Wi.isValid=je,Wi.abs=fo,Wi.add=ho,Wi.subtract=mo,Wi.as=bo,Wi.asMilliseconds=bi,Wi.asSeconds=wi,Wi.asMinutes=xi,Wi.asHours=ki,Wi.asDays=Si,Wi.asWeeks=Oi,Wi.asMonths=Ti,Wi.asQuarters=Mi,Wi.asYears=Ci,Wi.valueOf=wo,Wi._bubble=go,Wi.clone=ko,Wi.get=So,Wi.milliseconds=Di,Wi.seconds=Ai,Wi.minutes=$i,Wi.hours=Ei,Wi.days=ji,Wi.weeks=To,Wi.months=Li,Wi.years=Pi,Wi.humanize=$o,Wi.toISOString=jo,Wi.toString=jo,Wi.toJSON=jo,Wi.locale=On,Wi.localeData=Tn,Wi.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",jo),Wi.lang=si,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Z("x",cr),Z("X",fr),Q("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Q("x",function(t,e,n){n._d=new Date(x(t))}),e.version="2.24.0",function(t){Lo=t}(Ce),e.fn=gi,e.min=Ae,e.max=$e,e.now=ti,e.utc=p,e.unix=to,e.months=ao,e.isDate=u,e.locale=ne,e.invalid=g,e.duration=Xe,e.isMoment=b,e.weekdays=co,e.parseZone=eo,e.localeData=ie,e.isDuration=Ie,e.monthsShort=so,e.weekdaysMin=lo,e.defineLocale=oe,e.updateLocale=re,e.locales=ae,e.weekdaysShort=uo,e.normalizeUnits=N,e.relativeTimeRounding=Do,e.relativeTimeThreshold=Ao,e.calendarFormat=an,e.prototype=gi,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e})}),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s={install:function(t,e){var n=e&&e.moment?e.moment:i;Object.defineProperties(t.prototype,{$moment:{get:function(){return n}}}),t.moment=n,t.filter("moment",function(){function t(){for(var e=arguments,o=arguments.length,r=Array(o),i=0;i<o;i++)r[i]=e[i];r=Array.prototype.slice.call(r);var s=r.shift();switch(s){case"add":for(var u=r.shift().split(",").map(Function.prototype.call,String.prototype.trim),l={},f=0;f<u.length;f++){var d=u[f].split(" ");l[d[1]]=d[0]}c.add(l);break;case"subtract":for(var p=r.shift().split(",").map(Function.prototype.call,String.prototype.trim),h={},m=0;m<p.length;m++){var v=p[m].split(" ");h[v[1]]=v[0]}c.subtract(h);break;case"from":var g="now",y=!1;"now"===r[0]&&r.shift(),n(r[0]).isValid()&&(g=n(r.shift())),!0===r[0]&&(r.shift(),y=!0),c="now"!==g?c.from(g,y):c.fromNow(y);break;case"diff":var _=n(),b="",w=!1;n(r[0]).isValid()?_=n(r.shift()):null!==r[0]&&"now"!==r[0]||r.shift(),r[0]&&(b=r.shift()),!0===r[0]&&(w=r.shift()),c=c.diff(_,b,w);break;case"calendar":var x=n(),k={};n(r[0]).isValid()?x=n(r.shift()):null!==r[0]&&"now"!==r[0]||r.shift(),"object"===a(r[0])&&(k=r.shift()),c=c.calendar(x,k);break;case"utc":c.utc();break;case"timezone":c.tz(r.shift());break;default:var S=s;c=c.format(S)}r.length&&t.apply(t,r)}for(var e=arguments,o=arguments.length,r=Array(o),i=0;i<o;i++)r[i]=e[i];r=Array.prototype.slice.call(r);var s=r.shift(),c=void 0;return c=Array.isArray(s)&&"string"==typeof s[0]?n(s[0],s[1],!0):"number"==typeof s&&s.toString().length<12?n.unix(s):n(s),s&&c.isValid()?(t.apply(t,r),c):(console.warn("Could not build a valid `moment` object from input."),s)}),t.filter("duration",function(){function t(t){Array.isArray(t)||(t=[t]);var e=n.duration.apply(n,o(t));return e.isValid()||console.warn("Could not build a valid `duration` object from input."),e}for(var e=arguments,r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=e[a];i=Array.prototype.slice.call(i);var s=i.shift(),c=i.shift(),u=t(s);if("add"===c||"subtract"===c){var l=t(i);u[c](l)}else if(u&&u[c]){var f;u=(f=u)[c].apply(f,o(i))}return u})}},c=s.install;e.default=s,e.install=c,Object.defineProperty(e,"__esModule",{value:!0})})}).call(e,n(0))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default=r.default.component("notification",{template:"#opinionstage-notification",methods:{initiateUpdate:function(){this.$emit("update-btn-click")}}})},function(t,e,n){var o=n(31);"string"==typeof o&&(o=[[t.i,o,""]]);var r={};r.transform=void 0;n(4)(o,r);o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(3)(!1),e.push([t.i,'.opinionstage-content-popup-contents{min-width:960px}.opinionstage-content-popup-contents[data-opinionstage-client-logged-in=""]{max-width:680px;min-width:680px}.opinionstage-content-popup-contents[data-opinionstage-client-logged-in=""] .main-title{font-size:20px}.opinionstage-content-popup-contents[data-opinionstage-client-logged-in=""] .page-content{margin:0 auto;padding:40px 30px}.opinionstage-content-popup-contents[data-opinionstage-client-logged-in=""] .page-content #os-start-login{margin-top:30px}.opinionstage-content-popup-contents *{margin:0;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:Open Sans,Helvetica,sans-serif}.opinionstage-content-popup-contents .header{background-color:#222120;width:100%}.opinionstage-content-popup-contents .header__container{color:#fff;width:100%;margin:auto;padding:0 15px}.opinionstage-content-popup-contents .header__container.mw-1000{margin-left:auto;max-width:1000px;padding:0}.opinionstage-content-popup-contents .header__logo{display:inline-block}.opinionstage-content-popup-contents .header__logo a:active,.opinionstage-content-popup-contents .header__logo a:focus,.opinionstage-content-popup-contents .header__logo a:hover,.opinionstage-content-popup-contents .header__logo a:visited{border:none;background:none;-webkit-box-shadow:none;box-shadow:none}.opinionstage-content-popup-contents .header__logo img{margin:15px 10px;width:150px}.opinionstage-content-popup-contents .header__nav{display:inline-block;font-size:0;vertical-align:bottom}.opinionstage-content-popup-contents .header__action{display:block;float:right;font-size:0;margin-top:10px}.opinionstage-content-popup-contents .page-content{margin:0 auto;padding:25px 15px 15px}.opinionstage-content-popup-contents .main-title{font-size:30px;font-weight:400;line-height:normal}.opinionstage-content-popup-contents .conect-form{text-align:center;margin-top:20px}.opinionstage-content-popup-contents .content-actions{height:40px;margin-bottom:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.opinionstage-content-popup-contents .content-actions__left,.opinionstage-content-popup-contents .content-actions__right{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.opinionstage-content-popup-contents .content-actions__left{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.opinionstage-content-popup-contents .content-actions__right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.opinionstage-content-popup-contents .content-actions__sep{border-right:1px solid #e5e5e5;margin:0 20px}.opinionstage-content-popup-contents .content-actions:after{content:"";clear:both;display:block}.opinionstage-content-popup-contents .filter__itm{display:inline-block;cursor:pointer;font-size:12px;margin-right:0;line-height:25px;text-transform:uppercase;width:100%}.opinionstage-content-popup-contents .filter__itm:first-child{border-top:1px solid #3487fa}.opinionstage-content-popup-contents .filter__itm:last-child{border-bottom:1px solid #3487fa}.opinionstage-content-popup-contents .filter__itm.active{color:#fff;background:#5299fb;font-weight:400;pointer-events:none}.opinionstage-content-popup-contents .filter{display:inline-block;margin:0;width:auto}.opinionstage-content-popup-contents .content__list{height:calc(92vh - 160px);overflow-y:scroll}.opinionstage-content-popup-contents .content__list .opinionstage-item-action-container{padding:25px 0}.opinionstage-content-popup-contents .content__loading{text-align:center}.opinionstage-content-popup-contents .content__itm{margin:0;padding-bottom:6px;padding-top:10px;position:relative;width:100%;border-bottom:1px solid #e5e5e5}.opinionstage-content-popup-contents .content__itm:first-child{border-top:1px solid #e5e5e5}.opinionstage-content-popup-contents .content__itm:hover .content__links{display:inline-block;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.opinionstage-content-popup-contents .content__image{display:inline-block;height:90px;position:relative;width:15%}.opinionstage-content-popup-contents .content__image img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.opinionstage-content-popup-contents .content__info{display:inline-block;position:relative;background:transparent;font-size:16px;height:85px;width:50%;line-height:normal;margin:0;overflow:hidden;padding:0 10px;text-overflow:ellipsis;white-space:nowrap}.opinionstage-content-popup-contents .content__info a{color:inherit;text-decoration:none}.opinionstage-content-popup-contents .content__info-title{font-weight:600}.opinionstage-content-popup-contents .content__info .opinionstage-draft{color:#f46368;text-transform:capitalize;font-size:80%}.opinionstage-content-popup-contents .content__info .icon-os-status-open{color:#3aaebd}.opinionstage-content-popup-contents .content__info .icon-os-status-closed{color:#f46368}.opinionstage-content-popup-contents .opinionstage-with-separator:before{content:"";margin:0 10px;height:100%;border-left:1px solid #b1b1b1}.opinionstage-content-popup-contents .content__info-details{position:absolute;bottom:0;font-size:13px;color:#b1b1b1}.opinionstage-content-popup-contents .content__info-details span{color:#b1b1b1}.opinionstage-content-popup-contents .content__links{background:none;display:inline-block;float:right;text-align:right;padding:20px 10px;left:0;position:relative;top:0;width:30%}@media only screen and (max-width:767px){.opinionstage-content-popup-contents .content__links{padding-left:0;padding-right:0}}.opinionstage-content-popup-contents .content__links-itm{border-radius:5px;border:1px solid #fff;color:#fff;background:transparent;cursor:pointer;display:block;line-height:1;margin:5px auto;padding:14px 8px;text-align:center;text-decoration:none;text-transform:uppercase;width:200px}.opinionstage-content-popup-contents .content__links-itm:hover{background-color:hsla(0,0%,100%,.1)}.opinionstage-content-popup-contents .popup-content-btn{border:1px solid #32adbc;border-radius:2px;color:#32adbc;display:inline;font-size:15px;font-weight:600;padding:13px 14px;text-align:center;text-decoration:none;width:auto}.opinionstage-content-popup-contents .content__label{background-color:#222120;bottom:auto;color:#fff;font-size:12px;top:0;left:0;padding:1px 5px;position:absolute;text-transform:uppercase;z-index:2}.opinionstage-content-popup-contents .std-btn{background-color:rgba(123,91,167,.4);border-radius:5px 5px 0 0;cursor:pointer;color:#fff;display:inline-block;font:16px/50px Open Sans,Helvetica,sans-serif;margin:0;text-align:center;text-transform:uppercase;vertical-align:bottom;width:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.opinionstage-content-popup-contents .std-btn.active{background-color:#fff;color:#222120}.opinionstage-content-popup-contents .create-new-menu-box{display:inline-block;position:relative}.opinionstage-content-popup-contents .create-new-menu-box:hover .create-new-menu{display:block}.opinionstage-content-popup-contents .create-new-menu{display:none;position:absolute;width:100%;top:39px;left:0;border:1px solid #3aaebd;background-color:#fff;z-index:3}.opinionstage-content-popup-contents .create-menu__itm{display:block;color:#3aaebd;border-bottom:1px solid #3aaebd;padding:8px 12px;background-color:#fff;font-size:14px;text-decoration:none;text-transform:uppercase}.opinionstage-content-popup-contents .create-menu__itm:hover{text-decoration:none;color:#fff;background-color:#44a9d2}.opinionstage-content-popup-contents .btn-close{border-radius:5px;color:#fff;cursor:pointer;display:inline-block;font:27px/48px Open Sans,Helvetica,sans-serif;margin-left:20px;text-align:center;width:42px}.opinionstage-content-popup-contents .btn-close:hover{opacity:.8}.opinionstage-content-popup-contents .btn-blue{display:inline-block;background-color:#38aebd;border:medium none;border-radius:5px;color:#fff;cursor:pointer;font-size:16px;line-height:36px;outline:medium none;text-transform:uppercase;text-decoration:none;width:140px}.opinionstage-content-popup-contents .btn-blue:hover{background-color:#55a6cc}.opinionstage-content-popup-contents .btn-show-more{padding:15px 0;border:none;background-color:#e6e6e6;width:100%}.opinionstage-content-popup-contents .std-inp{background-color:#fff;border:1px solid #c1c1c1;border-radius:5px;height:36px;outline:medium none;padding:0 15px;width:450px}.opinionstage-content-popup-contents .os-search{width:180px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #ccc;border-radius:2px;-webkit-box-shadow:0 0;box-shadow:0 0}.opinionstage-content-popup-contents .os-search__input{color:#797979;padding-left:10px;width:100%;border:none;border-radius:0;outline:none}.opinionstage-content-popup-contents .os-search__input:focus{border:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;outline:none}.opinionstage-content-popup-contents .os-search__icon{color:#3aaebd;line-height:normal;font-size:18px;padding:10px 9px;margin:0}.opinionstage-content-popup-contents .hidden{visibility:hidden}.opinionstage-content-popup-contents .opinionstage-blue-btn{cursor:pointer;text-align:center;color:#fff;text-decoration:none;display:inline-block;padding:11px 10px;font-weight:400;background-color:#38aebd;border-radius:3px;border-style:hidden;width:130px;margin-right:15px}.opinionstage-content-popup-contents .opinionstage-blue-btn:hover{opacity:.9}.opinionstage-content-popup-contents .opinionstage-section-notification{background-color:rgba(0,0,0,.7);width:100%;padding:20px 25px;z-index:3;text-align:center;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.6);box-shadow:0 2px 5px rgba(0,0,0,.6)}.opinionstage-content-popup-contents .opinionstage-section-notification__title{color:#fff;font-size:15px;margin-bottom:15px}.opinionstage-content-popup-contents .opinionstage-section-notification__controls{position:relative;font-size:0}.opinionstage-content-popup-contents .notification-container~div>.page-content .content__list{max-height:calc(92vh - 270px)}.opinionstage-content-popup-contents .bordered-container{border:1px solid #e5e5e5;text-align:center;padding:40px}.opinionstage-content-popup-contents .opinionstage-introduction-video{text-align:center;padding:20px}.opinionstage-content-popup-contents .opinionstage-connect-form{margin-top:12px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.opinionstage-content-popup-contents .opinionstage-connect-form .opinionstage-conect-input{border:1px solid #e5e5e5;height:40px;padding:0 15px;width:420px;border-radius:3px;margin-right:10px;-webkit-box-shadow:none!important;box-shadow:none!important;outline:none!important}.opinionstage-content-popup-contents .dropbtn{background-color:#fff;border:1px solid #e4e4e4;border-right:0!important;-webkit-box-shadow:0 0 0!important;box-shadow:0 0 0!important;cursor:pointer;display:inline-block;font:12px/38px Open Sans,Helvetica,sans-serif;outline:none!important;padding-left:10px;position:relative;text-align:left;text-decoration:none;width:140px;margin-right:50px}.opinionstage-content-popup-contents .dropbtn span{color:#555454;font-size:12px;font-weight:700;text-transform:uppercase}.opinionstage-content-popup-contents .dropbtn:before{color:#000;content:"\\E958";-webkit-transform:rotate(-90deg);transform:rotate(-90deg);display:block;font-family:os-icon-plugin-plugin-font;font-size:9px;position:absolute;right:-25px;top:0;z-index:3;font-weight:700}.opinionstage-content-popup-contents .dropbtn:after{border:1px solid #e4e4e4;border-left:0!important;content:"";position:absolute;right:-40px;top:-1px;width:40px;height:38px}.opinionstage-content-popup-contents .dropdown{display:inline-block;position:relative}.opinionstage-content-popup-contents .dropdown:hover .popup-action-dropdown.dropdown-content{width:130px}.opinionstage-content-popup-contents .dropdown:hover .popup-action.popup-content-btn{background-color:#32adbc}.opinionstage-content-popup-contents .dropdown:hover .popup-action.popup-content-btn:before{color:#fff}.opinionstage-content-popup-contents .dropdown-popup-action{height:45px}.opinionstage-content-popup-contents .dropdown-content{background-color:#f9f9f9;-webkit-box-shadow:0 8px 16px 0 rgba(0,0,0,.2);box-shadow:0 8px 16px 0 rgba(0,0,0,.2);display:none;left:1px;position:absolute;top:40px;z-index:9}.opinionstage-content-popup-contents .dropdown-content div{background-color:#fff;border:1px solid #3487fa;border-bottom:0;border-top:0;color:#555454;display:block;padding:5px 10px 5px 20px;text-decoration:none}.opinionstage-content-popup-contents .dropdown-content div:hover{background-color:#3487fa;color:#fff!important}.opinionstage-content-popup-contents .dropdown_items .dropdown-content{width:180px}.opinionstage-content-popup-contents .dropdown:hover .dropdown-content{display:block!important;width:180px}.opinionstage-content-popup-contents .dropdown:hover .dropbtn{background-color:#fff}.opinionstage-content-popup-contents .popup-action:before{color:#32adbc;padding:0;position:absolute;right:18px;content:"\\E958";-webkit-transform:rotate(-90deg);transform:rotate(-90deg);display:block;font-family:os-icon-plugin-plugin-font;font-size:9px;top:15px;z-index:3;font-weight:700}.opinionstage-content-popup-contents .popup-action.popup-content-btn{margin-left:10px;padding:12px 25px;position:relative}.opinionstage-content-popup-contents .popup-action-dropdown{background:#fff;border:1px solid #32adbc;border-radius:3px}.opinionstage-content-popup-contents .popup-action-dropdown .content__links-itm{border:none;border-bottom:1px solid #32adbc;border-radius:0;color:#32adbc;font-size:14px;font-weight:400;margin:0;padding:10px;width:auto;text-align:left!important;letter-spacing:1px}.opinionstage-content-popup-contents .popup-action-dropdown .content__links-itm:hover{background-color:#32adbc!important;color:#fff}.opinionstage-content-popup-contents .popup-action-dropdown .content__links-itm:last-child{border:none}.opinionstage-content-popup-contents .popup-action-dropdown.dropdown-content{left:auto;right:0;top:20px;z-index:10}.opinionstage-content-popup-contents .opinionstage-anchors-list .filter__itm{padding:0}.opinionstage-content-popup-contents .opinionstage-anchors-list .filter__itm:hover a{color:#fff}.opinionstage-content-popup-contents .opinionstage-anchors-list a{padding:5px 10px 5px 20px;display:block;text-decoration:none;width:100%}.opinionstage-content-popup-contents .selected-draft__container{position:absolute;left:0;top:0;height:100%;width:100%;background-color:rgba(0,0,0,.8);z-index:9999}.opinionstage-content-popup-contents .selected-draft__container>div{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:6px;overflow:hidden;background-color:#fff;padding:25px 35px}.opinionstage-content-popup-contents .selected-draft__message{background-color:#f5f5f5;width:650px;padding:25px 35px;margin-top:20px}.opinionstage-content-popup-contents .selected-draft__message p{font-size:16px}.opinionstage-content-popup-contents .selected-draft__message a{color:#32adbc}.opinionstage-content-popup-contents .opinionstage-close{position:absolute;right:16px;top:12px;width:20px;height:20px;cursor:pointer}.opinionstage-content-popup-contents .opinionstage-close:after,.opinionstage-content-popup-contents .opinionstage-close:before{position:absolute;left:15px;content:" ";height:17px;width:2px;background-color:#b1b1b1}.opinionstage-content-popup-contents .opinionstage-close:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.opinionstage-content-popup-contents .opinionstage-close:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.opinionstage-my-items-view section{background:#fff}.opinionstage-my-items-view .opinionstage-section-notification,.opinionstage-my-items-view .page-content{width:1000px;margin-left:auto;margin-right:auto}',""])},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=n(5),a=function(t){return t&&t.__esModule?t:{default:t}}(i),s=n(2);window.OpinionStage&&void 0!==OpinionStage.contentPopup&&console.warn("[OpinionStage] content-popup APIs was already included"),function(t,e){var n=function(){function t(){o(this,t),this.app=void 0}return r(t,[{key:"show",value:function(t){"function"!=typeof t&&(t=function(){});var n=e("[data-opinionstage-content-popup-template]").html();e("[opinionstage-my-items-view]").html(n),this.app||(this.app=new a.default),this.app.widgetType=s.WIDGET_ALL,this.app.isModalOpened=!0,this.app.isMyItemsPage=!0,this.app.widgetSelectCb=t}}]),t}();t.widgetList=new n,t.widgetList.WIDGET_ALL=s.WIDGET_ALL}(window.OpinionStage=window.OpinionStage||{},jQuery)}]);
|
assets/admin/src/menu-page.scss
CHANGED
@@ -19,21 +19,20 @@ $black: #25282B;
|
|
19 |
|
20 |
.opinionstage-header-wrapper {
|
21 |
background: #232121;
|
22 |
-
margin-right: 20px;
|
23 |
overflow: hidden;
|
24 |
position: relative;
|
25 |
}
|
26 |
|
27 |
.opinionstage-logo-wrapper {
|
28 |
-
padding:
|
29 |
max-width: 780px;
|
30 |
}
|
31 |
|
32 |
.opinionstage-logo {
|
33 |
background: url("../images/os-logo-header.png") no-repeat 0 0;
|
34 |
-
background-size:
|
35 |
display: inline-block;
|
36 |
-
height:
|
37 |
width: 150px;
|
38 |
&__dark {
|
39 |
background: url("../images/logo-dark-font.svg") no-repeat 0 0;
|
@@ -248,7 +247,8 @@ p.failed-load-items-request {
|
|
248 |
padding: 25px;
|
249 |
max-width: 950px;
|
250 |
color: #6E6E6E;
|
251 |
-
margin-left:
|
|
|
252 |
|
253 |
@media (max-width: 1024px) {
|
254 |
margin-left: 30px;
|
@@ -965,7 +965,11 @@ body.opinion-stage_page_opinionstage-help-resource {
|
|
965 |
background-color: #fff;
|
966 |
|
967 |
.opinionstage-logo-wrapper {
|
968 |
-
max-width:
|
|
|
|
|
|
|
|
|
969 |
}
|
970 |
}
|
971 |
// Tutorials & Help --end
|
19 |
|
20 |
.opinionstage-header-wrapper {
|
21 |
background: #232121;
|
|
|
22 |
overflow: hidden;
|
23 |
position: relative;
|
24 |
}
|
25 |
|
26 |
.opinionstage-logo-wrapper {
|
27 |
+
padding: 15.5px 30px;
|
28 |
max-width: 780px;
|
29 |
}
|
30 |
|
31 |
.opinionstage-logo {
|
32 |
background: url("../images/os-logo-header.png") no-repeat 0 0;
|
33 |
+
background-size: 100%;
|
34 |
display: inline-block;
|
35 |
+
height: 26.7px;
|
36 |
width: 150px;
|
37 |
&__dark {
|
38 |
background: url("../images/logo-dark-font.svg") no-repeat 0 0;
|
247 |
padding: 25px;
|
248 |
max-width: 950px;
|
249 |
color: #6E6E6E;
|
250 |
+
margin-left: auto;
|
251 |
+
margin-right: auto;
|
252 |
|
253 |
@media (max-width: 1024px) {
|
254 |
margin-left: 30px;
|
965 |
background-color: #fff;
|
966 |
|
967 |
.opinionstage-logo-wrapper {
|
968 |
+
max-width: 1000px !important;
|
969 |
+
margin-left: auto;
|
970 |
+
margin-right: auto;
|
971 |
+
padding-right: 0 !important;
|
972 |
+
padding-left: 0 !important;
|
973 |
}
|
974 |
}
|
975 |
// Tutorials & Help --end
|
assets/content-popup/app/components/notification.js
CHANGED
@@ -4,7 +4,7 @@ export default Vue.component('notification', {
|
|
4 |
template: '#opinionstage-notification',
|
5 |
|
6 |
methods: {
|
7 |
-
initiateUpdate
|
8 |
this.$emit('update-btn-click')
|
9 |
},
|
10 |
}
|
4 |
template: '#opinionstage-notification',
|
5 |
|
6 |
methods: {
|
7 |
+
initiateUpdate() {
|
8 |
this.$emit('update-btn-click')
|
9 |
},
|
10 |
}
|
assets/content-popup/app/components/popup-content.js
CHANGED
@@ -34,7 +34,7 @@ export default Vue.component('popup-content', {
|
|
34 |
'pluginVersion',
|
35 |
],
|
36 |
|
37 |
-
data
|
38 |
return {
|
39 |
dataLoading: false,
|
40 |
widgets: [],
|
@@ -50,19 +50,21 @@ export default Vue.component('popup-content', {
|
|
50 |
store,
|
51 |
|
52 |
methods: {
|
53 |
-
reloadData
|
54 |
-
if (
|
|
|
|
|
55 |
const widgetType = search.widgetType || this.widgetType || this.searchCriteria.type || WIDGET_ALL
|
56 |
const widgetTitle = search.widgetTitle || ''
|
57 |
|
58 |
this.newWidgetsAvailable = false
|
59 |
stopWidgetUpdatesChecking.call(this)
|
60 |
-
this.searchCriteria = {
|
61 |
this.$store.commit('clearWidgets')
|
62 |
|
63 |
-
loadData.call(this).then(
|
64 |
this.widgets = this.$store.state.widgets[0]
|
65 |
-
if (
|
66 |
setLastUpdateTimeFromWidget.call(this)
|
67 |
}
|
68 |
|
@@ -70,27 +72,27 @@ export default Vue.component('popup-content', {
|
|
70 |
})
|
71 |
},
|
72 |
|
73 |
-
reloadAndRestartCheckingForUpdates
|
74 |
-
this.reloadData({
|
75 |
},
|
76 |
|
77 |
-
appendData
|
78 |
this.searchCriteria.page += 1
|
79 |
|
80 |
-
loadData.call(this).then(
|
81 |
-
const newWidgets = this.$store.state.widgets[this.searchCriteria.page-1]
|
82 |
-
this.widgets = this.widgets.concat(
|
83 |
})
|
84 |
},
|
85 |
|
86 |
-
widgetSelected
|
87 |
this.$emit('widget-selected', widget)
|
88 |
},
|
89 |
},
|
90 |
|
91 |
watch: {
|
92 |
-
modalIsOpened
|
93 |
-
if (
|
94 |
this.reloadData()
|
95 |
} else {
|
96 |
this.newWidgetsAvailable = false
|
@@ -100,22 +102,22 @@ export default Vue.component('popup-content', {
|
|
100 |
},
|
101 |
})
|
102 |
|
103 |
-
function loadData
|
104 |
this.dataLoading = true
|
105 |
|
106 |
-
return loadClientWidgets.call(this, this.searchCriteria).then(
|
107 |
this.noMoreData = !hasNextPage(this.$store.state.nextPageNumber)
|
108 |
this.dataLoading = false
|
109 |
})
|
110 |
}
|
111 |
|
112 |
-
function loadClientWidgets
|
113 |
-
if (
|
114 |
return this.$store.dispatch({
|
115 |
type: 'loadClientWidgets',
|
116 |
-
widgetsUrl:
|
117 |
pluginVersion: this.pluginVersion,
|
118 |
-
accessToken:
|
119 |
filtering,
|
120 |
})
|
121 |
} else {
|
@@ -125,30 +127,30 @@ function loadClientWidgets (filtering) {
|
|
125 |
|
126 |
function withParams(url, type, time) {
|
127 |
const urlParams = []
|
128 |
-
if (
|
129 |
-
urlParams.push(
|
130 |
}
|
131 |
|
132 |
-
if (
|
133 |
-
urlParams.push(
|
134 |
}
|
135 |
|
136 |
-
if (
|
137 |
return url
|
138 |
} else {
|
139 |
return url + '?' + join(urlParams, '&')
|
140 |
}
|
141 |
}
|
142 |
|
143 |
-
function pullWidgetsUpdateInformation(type, updatedAt){
|
144 |
const url = withParams(this.clientWidgetsHasNewUrl, type, updatedAt)
|
145 |
|
146 |
return JsonApi.get(url, this.pluginVersion, this.accessKey)
|
147 |
-
.then(
|
148 |
this.newWidgetsAvailable = payload.data['has-new-widgets']
|
149 |
})
|
150 |
-
.catch(
|
151 |
-
console.error(
|
152 |
})
|
153 |
}
|
154 |
|
@@ -156,18 +158,18 @@ function hasNextPage(nextPageNumber) {
|
|
156 |
return nextPageNumber > 1
|
157 |
}
|
158 |
|
159 |
-
function checkWidgetUpdates
|
160 |
-
pullWidgetsUpdateInformation.call(this, this.searchCriteria.type, this.lastUpdateTime).then(
|
161 |
-
if (
|
162 |
stopWidgetUpdatesChecking.call(this)
|
163 |
}
|
164 |
})
|
165 |
}
|
166 |
|
167 |
function startWidgetUpdatesChecking() {
|
168 |
-
if (
|
169 |
this.isCheckingWidgetUpdates = true
|
170 |
-
this.widgetUpdatesChecker = setInterval(
|
171 |
}
|
172 |
}
|
173 |
|
34 |
'pluginVersion',
|
35 |
],
|
36 |
|
37 |
+
data() {
|
38 |
return {
|
39 |
dataLoading: false,
|
40 |
widgets: [],
|
50 |
store,
|
51 |
|
52 |
methods: {
|
53 |
+
reloadData(search) {
|
54 |
+
if (!search) {
|
55 |
+
search = {}
|
56 |
+
}
|
57 |
const widgetType = search.widgetType || this.widgetType || this.searchCriteria.type || WIDGET_ALL
|
58 |
const widgetTitle = search.widgetTitle || ''
|
59 |
|
60 |
this.newWidgetsAvailable = false
|
61 |
stopWidgetUpdatesChecking.call(this)
|
62 |
+
this.searchCriteria = {page: 1, perPage: 9, type: widgetType, title: widgetTitle}
|
63 |
this.$store.commit('clearWidgets')
|
64 |
|
65 |
+
loadData.call(this).then(() => {
|
66 |
this.widgets = this.$store.state.widgets[0]
|
67 |
+
if (!this.searchCriteria.title) {
|
68 |
setLastUpdateTimeFromWidget.call(this)
|
69 |
}
|
70 |
|
72 |
})
|
73 |
},
|
74 |
|
75 |
+
reloadAndRestartCheckingForUpdates() {
|
76 |
+
this.reloadData({widgetType: this.searchCriteria.type, widgetTitle: ''})
|
77 |
},
|
78 |
|
79 |
+
appendData() {
|
80 |
this.searchCriteria.page += 1
|
81 |
|
82 |
+
loadData.call(this).then(() => {
|
83 |
+
const newWidgets = this.$store.state.widgets[this.searchCriteria.page - 1]
|
84 |
+
this.widgets = this.widgets.concat(newWidgets)
|
85 |
})
|
86 |
},
|
87 |
|
88 |
+
widgetSelected(widget) {
|
89 |
this.$emit('widget-selected', widget)
|
90 |
},
|
91 |
},
|
92 |
|
93 |
watch: {
|
94 |
+
modalIsOpened(isOpened) {
|
95 |
+
if (isOpened && this.clientIsLoggedIn) {
|
96 |
this.reloadData()
|
97 |
} else {
|
98 |
this.newWidgetsAvailable = false
|
102 |
},
|
103 |
})
|
104 |
|
105 |
+
function loadData() {
|
106 |
this.dataLoading = true
|
107 |
|
108 |
+
return loadClientWidgets.call(this, this.searchCriteria).then(() => {
|
109 |
this.noMoreData = !hasNextPage(this.$store.state.nextPageNumber)
|
110 |
this.dataLoading = false
|
111 |
})
|
112 |
}
|
113 |
|
114 |
+
function loadClientWidgets(filtering) {
|
115 |
+
if (this.clientIsLoggedIn) {
|
116 |
return this.$store.dispatch({
|
117 |
type: 'loadClientWidgets',
|
118 |
+
widgetsUrl: this.clientWidgetsUrl,
|
119 |
pluginVersion: this.pluginVersion,
|
120 |
+
accessToken: this.accessKey,
|
121 |
filtering,
|
122 |
})
|
123 |
} else {
|
127 |
|
128 |
function withParams(url, type, time) {
|
129 |
const urlParams = []
|
130 |
+
if (type) {
|
131 |
+
urlParams.push(`type=${type}`)
|
132 |
}
|
133 |
|
134 |
+
if (time) {
|
135 |
+
urlParams.push(`updated_at=${time}`)
|
136 |
}
|
137 |
|
138 |
+
if (isEmpty(urlParams)) {
|
139 |
return url
|
140 |
} else {
|
141 |
return url + '?' + join(urlParams, '&')
|
142 |
}
|
143 |
}
|
144 |
|
145 |
+
function pullWidgetsUpdateInformation(type, updatedAt) {
|
146 |
const url = withParams(this.clientWidgetsHasNewUrl, type, updatedAt)
|
147 |
|
148 |
return JsonApi.get(url, this.pluginVersion, this.accessKey)
|
149 |
+
.then((payload) => {
|
150 |
this.newWidgetsAvailable = payload.data['has-new-widgets']
|
151 |
})
|
152 |
+
.catch((error) => {
|
153 |
+
console.error("[social-polls-by-opinionstage][content-popup] can't load widgets:", error.statusText)
|
154 |
})
|
155 |
}
|
156 |
|
158 |
return nextPageNumber > 1
|
159 |
}
|
160 |
|
161 |
+
function checkWidgetUpdates() {
|
162 |
+
pullWidgetsUpdateInformation.call(this, this.searchCriteria.type, this.lastUpdateTime).then(() => {
|
163 |
+
if (this.newWidgetsAvailable) {
|
164 |
stopWidgetUpdatesChecking.call(this)
|
165 |
}
|
166 |
})
|
167 |
}
|
168 |
|
169 |
function startWidgetUpdatesChecking() {
|
170 |
+
if (this.clientIsLoggedIn) {
|
171 |
this.isCheckingWidgetUpdates = true
|
172 |
+
this.widgetUpdatesChecker = setInterval(checkWidgetUpdates.bind(this), 3000)
|
173 |
}
|
174 |
}
|
175 |
|
assets/content-popup/app/components/widget-list.js
CHANGED
@@ -39,7 +39,7 @@ export default Vue.component('widget-list', {
|
|
39 |
'showSearch',
|
40 |
],
|
41 |
|
42 |
-
data
|
43 |
return {
|
44 |
selectedWidgetType: null,
|
45 |
widgetTitleSearch: '',
|
@@ -50,7 +50,7 @@ export default Vue.component('widget-list', {
|
|
50 |
},
|
51 |
|
52 |
computed: {
|
53 |
-
selectedWidgetTitle
|
54 |
return selectedWidgetTitles[this.selectedWidgetType || this.preSelectedWidgetType]
|
55 |
},
|
56 |
},
|
@@ -60,34 +60,34 @@ export default Vue.component('widget-list', {
|
|
60 |
widgetsSearchUpdate.call(this)
|
61 |
}, 500),
|
62 |
|
63 |
-
widgets
|
64 |
this.hasData = this.dataLoading || this.widgets.length > 0
|
65 |
},
|
66 |
},
|
67 |
|
68 |
methods: {
|
69 |
-
select
|
70 |
-
if(
|
71 |
this.selectedDraftWidget = widget
|
72 |
} else {
|
73 |
this.$emit('widget-selected', widget)
|
74 |
}
|
75 |
},
|
76 |
|
77 |
-
selectWidgetType
|
78 |
this.selectedWidgetType = type
|
79 |
this.widgetTitleSearch = ''
|
80 |
|
81 |
widgetsSearchUpdate.call(this)
|
82 |
},
|
83 |
|
84 |
-
showMore
|
85 |
this.$emit('load-more-widgets')
|
86 |
},
|
87 |
},
|
88 |
})
|
89 |
|
90 |
-
function widgetsSearchUpdate
|
91 |
this.$emit('widgets-search-update', {
|
92 |
widgetType: this.selectedWidgetType,
|
93 |
widgetTitle: this.widgetTitleSearch
|
39 |
'showSearch',
|
40 |
],
|
41 |
|
42 |
+
data() {
|
43 |
return {
|
44 |
selectedWidgetType: null,
|
45 |
widgetTitleSearch: '',
|
50 |
},
|
51 |
|
52 |
computed: {
|
53 |
+
selectedWidgetTitle() {
|
54 |
return selectedWidgetTitles[this.selectedWidgetType || this.preSelectedWidgetType]
|
55 |
},
|
56 |
},
|
60 |
widgetsSearchUpdate.call(this)
|
61 |
}, 500),
|
62 |
|
63 |
+
widgets() {
|
64 |
this.hasData = this.dataLoading || this.widgets.length > 0
|
65 |
},
|
66 |
},
|
67 |
|
68 |
methods: {
|
69 |
+
select(widget) {
|
70 |
+
if (widget.isDraft) {
|
71 |
this.selectedDraftWidget = widget
|
72 |
} else {
|
73 |
this.$emit('widget-selected', widget)
|
74 |
}
|
75 |
},
|
76 |
|
77 |
+
selectWidgetType(type) {
|
78 |
this.selectedWidgetType = type
|
79 |
this.widgetTitleSearch = ''
|
80 |
|
81 |
widgetsSearchUpdate.call(this)
|
82 |
},
|
83 |
|
84 |
+
showMore() {
|
85 |
this.$emit('load-more-widgets')
|
86 |
},
|
87 |
},
|
88 |
})
|
89 |
|
90 |
+
function widgetsSearchUpdate() {
|
91 |
this.$emit('widgets-search-update', {
|
92 |
widgetType: this.selectedWidgetType,
|
93 |
widgetTitle: this.widgetTitleSearch
|
assets/content-popup/app/index.js
CHANGED
@@ -23,24 +23,26 @@ export default function (modal) {
|
|
23 |
|
24 |
data: {
|
25 |
widgetType: WIDGET_ALL,
|
26 |
-
widgetSelectCb: function (widget) {
|
|
|
|
|
27 |
isClientLoggedIn: null,
|
28 |
isModalOpened: false,
|
29 |
isMyItemsPage: false,
|
30 |
},
|
31 |
|
32 |
-
beforeMount
|
33 |
this.isClientLoggedIn = this.$el.dataset.opinionstageClientLoggedIn === '1'
|
34 |
},
|
35 |
|
36 |
methods: {
|
37 |
-
closePopup
|
38 |
-
if(
|
39 |
modal.close()
|
40 |
}
|
41 |
},
|
42 |
|
43 |
-
selectWidgetAndExit
|
44 |
this.widgetSelectCb(widget)
|
45 |
|
46 |
this.closePopup()
|
23 |
|
24 |
data: {
|
25 |
widgetType: WIDGET_ALL,
|
26 |
+
widgetSelectCb: function (widget) {
|
27 |
+
console.log('dumb widget insert callback, widget:', widget)
|
28 |
+
},
|
29 |
isClientLoggedIn: null,
|
30 |
isModalOpened: false,
|
31 |
isMyItemsPage: false,
|
32 |
},
|
33 |
|
34 |
+
beforeMount() {
|
35 |
this.isClientLoggedIn = this.$el.dataset.opinionstageClientLoggedIn === '1'
|
36 |
},
|
37 |
|
38 |
methods: {
|
39 |
+
closePopup(/*event*/) {
|
40 |
+
if (modal) {
|
41 |
modal.close()
|
42 |
}
|
43 |
},
|
44 |
|
45 |
+
selectWidgetAndExit(widget) {
|
46 |
this.widgetSelectCb(widget)
|
47 |
|
48 |
this.closePopup()
|
assets/content-popup/app/store.js
CHANGED
@@ -8,8 +8,8 @@ import JsonApi from '../lib/jsonapi.js'
|
|
8 |
|
9 |
Vue.use(Vuex)
|
10 |
|
11 |
-
function dispatchWidgetData
|
12 |
-
return apiJsonData.data.map(
|
13 |
const item = {
|
14 |
id: rawWidget.id,
|
15 |
type: rawWidget.attributes['type'],
|
@@ -41,33 +41,33 @@ function dispatchWidgetData (apiJsonData) {
|
|
41 |
})
|
42 |
}
|
43 |
|
44 |
-
function dispatchNextPage
|
45 |
return apiJsonData.meta.nextPage
|
46 |
}
|
47 |
|
48 |
-
function withFiltering(url, {
|
49 |
const urlParams = []
|
50 |
|
51 |
-
if (
|
52 |
-
urlParams.push(
|
53 |
}
|
54 |
|
55 |
-
if (
|
56 |
const trimmed = trim(title)
|
57 |
-
if (
|
58 |
-
urlParams.push(
|
59 |
}
|
60 |
}
|
61 |
|
62 |
-
if (
|
63 |
-
urlParams.push(
|
64 |
}
|
65 |
|
66 |
-
if (
|
67 |
-
urlParams.push(
|
68 |
}
|
69 |
|
70 |
-
if (
|
71 |
return url
|
72 |
} else {
|
73 |
return url + '?' + join(urlParams, '&')
|
@@ -81,19 +81,19 @@ export default new Vuex.Store({
|
|
81 |
},
|
82 |
|
83 |
mutations: {
|
84 |
-
loadWidgets
|
85 |
-
state.widgets.push(
|
86 |
state.nextPageNumber = dispatchNextPage(widgetsData)
|
87 |
},
|
88 |
|
89 |
-
clearWidgets
|
90 |
state.widgets = []
|
91 |
state.nextPageNumber = null
|
92 |
},
|
93 |
},
|
94 |
|
95 |
actions: {
|
96 |
-
loadClientWidgets
|
97 |
return dispatch('load', {
|
98 |
commitType: 'loadWidgets',
|
99 |
widgetsUrl,
|
@@ -103,18 +103,18 @@ export default new Vuex.Store({
|
|
103 |
})
|
104 |
},
|
105 |
|
106 |
-
load
|
107 |
const url = withFiltering(widgetsUrl, filtering)
|
108 |
|
109 |
return JsonApi.get(url, pluginVersion, accessToken)
|
110 |
-
.then(
|
111 |
commit({
|
112 |
type: commitType,
|
113 |
widgetsData: apiJson,
|
114 |
})
|
115 |
})
|
116 |
-
.catch(
|
117 |
-
console.error(
|
118 |
})
|
119 |
},
|
120 |
},
|
8 |
|
9 |
Vue.use(Vuex)
|
10 |
|
11 |
+
function dispatchWidgetData(apiJsonData) {
|
12 |
+
return apiJsonData.data.map((rawWidget) => {
|
13 |
const item = {
|
14 |
id: rawWidget.id,
|
15 |
type: rawWidget.attributes['type'],
|
41 |
})
|
42 |
}
|
43 |
|
44 |
+
function dispatchNextPage(apiJsonData) {
|
45 |
return apiJsonData.meta.nextPage
|
46 |
}
|
47 |
|
48 |
+
function withFiltering(url, {type, title, page, perPage}) {
|
49 |
const urlParams = []
|
50 |
|
51 |
+
if (type) {
|
52 |
+
urlParams.push(`type=${type}`)
|
53 |
}
|
54 |
|
55 |
+
if (!isEmpty(title)) {
|
56 |
const trimmed = trim(title)
|
57 |
+
if (!isEmpty(trimmed)) {
|
58 |
+
urlParams.push(`title_like=${trimmed}`)
|
59 |
}
|
60 |
}
|
61 |
|
62 |
+
if (page) {
|
63 |
+
urlParams.push(`page=${page}`)
|
64 |
}
|
65 |
|
66 |
+
if (perPage) {
|
67 |
+
urlParams.push(`per_page=${perPage}`)
|
68 |
}
|
69 |
|
70 |
+
if (isEmpty(urlParams)) {
|
71 |
return url
|
72 |
} else {
|
73 |
return url + '?' + join(urlParams, '&')
|
81 |
},
|
82 |
|
83 |
mutations: {
|
84 |
+
loadWidgets(state, {widgetsData}) {
|
85 |
+
state.widgets.push(dispatchWidgetData(widgetsData))
|
86 |
state.nextPageNumber = dispatchNextPage(widgetsData)
|
87 |
},
|
88 |
|
89 |
+
clearWidgets(state) {
|
90 |
state.widgets = []
|
91 |
state.nextPageNumber = null
|
92 |
},
|
93 |
},
|
94 |
|
95 |
actions: {
|
96 |
+
loadClientWidgets({dispatch}, {widgetsUrl, pluginVersion, accessToken, filtering}) {
|
97 |
return dispatch('load', {
|
98 |
commitType: 'loadWidgets',
|
99 |
widgetsUrl,
|
103 |
})
|
104 |
},
|
105 |
|
106 |
+
load({commit}, {commitType, widgetsUrl, filtering, pluginVersion, accessToken}) {
|
107 |
const url = withFiltering(widgetsUrl, filtering)
|
108 |
|
109 |
return JsonApi.get(url, pluginVersion, accessToken)
|
110 |
+
.then((apiJson) => {
|
111 |
commit({
|
112 |
type: commitType,
|
113 |
widgetsData: apiJson,
|
114 |
})
|
115 |
})
|
116 |
+
.catch((error) => {
|
117 |
+
console.error("[social-polls-by-opinionstage][content-popup] can't load widgets:", error.statusText)
|
118 |
})
|
119 |
},
|
120 |
},
|
assets/content-popup/index.js
CHANGED
@@ -13,7 +13,7 @@ import {
|
|
13 |
WIDGET_STORY,
|
14 |
} from './app/widget-types.js'
|
15 |
|
16 |
-
if (
|
17 |
console.warn('[OpinionStage] content-popup APIs was already included')
|
18 |
}
|
19 |
|
@@ -28,7 +28,7 @@ if ( window.OpinionStage && typeof(OpinionStage.contentPopup) !== 'undefined' )
|
|
28 |
*/
|
29 |
;(function (OS, $) {
|
30 |
class ContentPopup {
|
31 |
-
constructor
|
32 |
// vuejs vm instance
|
33 |
this.app = undefined
|
34 |
|
@@ -36,13 +36,15 @@ if ( window.OpinionStage && typeof(OpinionStage.contentPopup) !== 'undefined' )
|
|
36 |
this.modal = undefined
|
37 |
}
|
38 |
|
39 |
-
open
|
40 |
-
if (
|
41 |
throw new Error('onWidgetSelect must be a function')
|
42 |
}
|
43 |
|
44 |
$(() => {
|
45 |
-
if (
|
|
|
|
|
46 |
|
47 |
this.app.widgetType = preselectWidgetType || WIDGET_ALL
|
48 |
this.app.widgetSelectCb = onWidgetSelect
|
@@ -51,21 +53,21 @@ if ( window.OpinionStage && typeof(OpinionStage.contentPopup) !== 'undefined' )
|
|
51 |
}
|
52 |
}
|
53 |
|
54 |
-
function createModal
|
55 |
const self = this
|
56 |
|
57 |
self.modal = new Modal({
|
58 |
content: $('[data-opinionstage-content-popup-template]').html(),
|
59 |
|
60 |
-
onCreate
|
61 |
self.app = new ContentPopupContent(modal)
|
62 |
},
|
63 |
|
64 |
-
onClose
|
65 |
self.app.isModalOpened = false
|
66 |
},
|
67 |
|
68 |
-
onOpen
|
69 |
self.app.isModalOpened = true
|
70 |
},
|
71 |
})
|
@@ -73,14 +75,15 @@ if ( window.OpinionStage && typeof(OpinionStage.contentPopup) !== 'undefined' )
|
|
73 |
|
74 |
|
75 |
class WidgetList {
|
76 |
-
constructor
|
77 |
// vuejs vm instance
|
78 |
this.app = undefined
|
79 |
}
|
80 |
|
81 |
show(onWidgetSelect) {
|
82 |
-
if (
|
83 |
-
onWidgetSelect = function(){
|
|
|
84 |
}
|
85 |
|
86 |
const content = $('[data-opinionstage-content-popup-template]').html()
|
@@ -113,8 +116,8 @@ if ( window.OpinionStage && typeof(OpinionStage.contentPopup) !== 'undefined' )
|
|
113 |
})(window.OpinionStage = window.OpinionStage || {}, jQuery)
|
114 |
|
115 |
// this is part is specific only to classic WordPress editor
|
116 |
-
jQuery(function($) {
|
117 |
-
if (
|
118 |
OpinionStage.contentPopup.open({
|
119 |
onWidgetSelect
|
120 |
})
|
@@ -125,9 +128,10 @@ jQuery(function($) {
|
|
125 |
$('body').on('click', '[data-opinionstage-content-launch]', function (e) {
|
126 |
e.preventDefault()
|
127 |
|
128 |
-
function onWidgetSelect
|
129 |
wp.media.editor.insert(widget.shortcode)
|
130 |
}
|
|
|
131 |
OpinionStage.contentPopup.open({
|
132 |
onWidgetSelect
|
133 |
})
|
13 |
WIDGET_STORY,
|
14 |
} from './app/widget-types.js'
|
15 |
|
16 |
+
if (window.OpinionStage && typeof (OpinionStage.contentPopup) !== 'undefined') {
|
17 |
console.warn('[OpinionStage] content-popup APIs was already included')
|
18 |
}
|
19 |
|
28 |
*/
|
29 |
;(function (OS, $) {
|
30 |
class ContentPopup {
|
31 |
+
constructor() {
|
32 |
// vuejs vm instance
|
33 |
this.app = undefined
|
34 |
|
36 |
this.modal = undefined
|
37 |
}
|
38 |
|
39 |
+
open({preselectWidgetType, onWidgetSelect}) {
|
40 |
+
if (typeof (onWidgetSelect) !== 'function') {
|
41 |
throw new Error('onWidgetSelect must be a function')
|
42 |
}
|
43 |
|
44 |
$(() => {
|
45 |
+
if (!this.app) {
|
46 |
+
createModal.call(this)
|
47 |
+
}
|
48 |
|
49 |
this.app.widgetType = preselectWidgetType || WIDGET_ALL
|
50 |
this.app.widgetSelectCb = onWidgetSelect
|
53 |
}
|
54 |
}
|
55 |
|
56 |
+
function createModal() {
|
57 |
const self = this
|
58 |
|
59 |
self.modal = new Modal({
|
60 |
content: $('[data-opinionstage-content-popup-template]').html(),
|
61 |
|
62 |
+
onCreate(modal) {
|
63 |
self.app = new ContentPopupContent(modal)
|
64 |
},
|
65 |
|
66 |
+
onClose(modal) {
|
67 |
self.app.isModalOpened = false
|
68 |
},
|
69 |
|
70 |
+
onOpen(modal) {
|
71 |
self.app.isModalOpened = true
|
72 |
},
|
73 |
})
|
75 |
|
76 |
|
77 |
class WidgetList {
|
78 |
+
constructor() {
|
79 |
// vuejs vm instance
|
80 |
this.app = undefined
|
81 |
}
|
82 |
|
83 |
show(onWidgetSelect) {
|
84 |
+
if (typeof (onWidgetSelect) !== 'function') {
|
85 |
+
onWidgetSelect = function () {
|
86 |
+
}
|
87 |
}
|
88 |
|
89 |
const content = $('[data-opinionstage-content-popup-template]').html()
|
116 |
})(window.OpinionStage = window.OpinionStage || {}, jQuery)
|
117 |
|
118 |
// this is part is specific only to classic WordPress editor
|
119 |
+
jQuery(function ($) {
|
120 |
+
if (window.location.href.indexOf('modal_is_open') > -1) {
|
121 |
OpinionStage.contentPopup.open({
|
122 |
onWidgetSelect
|
123 |
})
|
128 |
$('body').on('click', '[data-opinionstage-content-launch]', function (e) {
|
129 |
e.preventDefault()
|
130 |
|
131 |
+
function onWidgetSelect(widget) {
|
132 |
wp.media.editor.insert(widget.shortcode)
|
133 |
}
|
134 |
+
|
135 |
OpinionStage.contentPopup.open({
|
136 |
onWidgetSelect
|
137 |
})
|
assets/content-popup/styles/content-popup.scss
CHANGED
@@ -43,8 +43,9 @@ $inputs-border-color: #ccc;
|
|
43 |
margin: auto;
|
44 |
padding: 0 15px;
|
45 |
&.mw-1000 {
|
46 |
-
margin-left:
|
47 |
max-width: 1000px;
|
|
|
48 |
}
|
49 |
}
|
50 |
|
@@ -749,6 +750,7 @@ $inputs-border-color: #ccc;
|
|
749 |
.opinionstage-section-notification,
|
750 |
.page-content {
|
751 |
width: 1000px;
|
752 |
-
margin-left:
|
|
|
753 |
}
|
754 |
}
|
43 |
margin: auto;
|
44 |
padding: 0 15px;
|
45 |
&.mw-1000 {
|
46 |
+
margin-left: auto;
|
47 |
max-width: 1000px;
|
48 |
+
padding: 0;
|
49 |
}
|
50 |
}
|
51 |
|
750 |
.opinionstage-section-notification,
|
751 |
.page-content {
|
752 |
width: 1000px;
|
753 |
+
margin-left: auto;
|
754 |
+
margin-right: auto;
|
755 |
}
|
756 |
}
|
assets/content-popup/webpack.config.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
var path = require('path')
|
2 |
|
3 |
-
module.exports = function(env={}) {
|
4 |
return {
|
5 |
entry: ['./index.js', './widget-list.js'],
|
6 |
|
@@ -20,17 +20,20 @@ module.exports = function(env={}) {
|
|
20 |
test: /\.scss$/,
|
21 |
use: [
|
22 |
'style-loader',
|
23 |
-
{
|
|
|
24 |
options: {
|
25 |
sourceMap: !env.production
|
26 |
}
|
27 |
},
|
28 |
-
{
|
|
|
29 |
options: {
|
30 |
sourceMap: !env.production
|
31 |
}
|
32 |
},
|
33 |
-
{
|
|
|
34 |
options: {
|
35 |
sourceMap: !env.production
|
36 |
}
|
1 |
var path = require('path')
|
2 |
|
3 |
+
module.exports = function (env = {}) {
|
4 |
return {
|
5 |
entry: ['./index.js', './widget-list.js'],
|
6 |
|
20 |
test: /\.scss$/,
|
21 |
use: [
|
22 |
'style-loader',
|
23 |
+
{
|
24 |
+
loader: 'css-loader',
|
25 |
options: {
|
26 |
sourceMap: !env.production
|
27 |
}
|
28 |
},
|
29 |
+
{
|
30 |
+
loader: 'sass-loader',
|
31 |
options: {
|
32 |
sourceMap: !env.production
|
33 |
}
|
34 |
},
|
35 |
+
{
|
36 |
+
loader: 'postcss-loader',
|
37 |
options: {
|
38 |
sourceMap: !env.production
|
39 |
}
|
assets/content-popup/widget-list.js
CHANGED
@@ -3,20 +3,21 @@ import {
|
|
3 |
WIDGET_ALL,
|
4 |
} from './app/widget-types.js'
|
5 |
|
6 |
-
if (
|
7 |
console.warn('[OpinionStage] content-popup APIs was already included')
|
8 |
}
|
9 |
|
10 |
;(function (OS, $) {
|
11 |
class WidgetList {
|
12 |
-
constructor
|
13 |
// vuejs vm instance
|
14 |
this.app = undefined
|
15 |
}
|
16 |
|
17 |
show(onWidgetSelect) {
|
18 |
-
if (
|
19 |
-
onWidgetSelect = function(){
|
|
|
20 |
}
|
21 |
|
22 |
const content = $('[data-opinionstage-content-popup-template]').html()
|
@@ -25,7 +26,7 @@ if ( window.OpinionStage && typeof(OpinionStage.contentPopup) !== 'undefined' )
|
|
25 |
if (!this.app) {
|
26 |
this.app = new ContentPopupContent()
|
27 |
}
|
28 |
-
|
29 |
|
30 |
this.app.widgetType = WIDGET_ALL
|
31 |
this.app.isModalOpened = true
|
3 |
WIDGET_ALL,
|
4 |
} from './app/widget-types.js'
|
5 |
|
6 |
+
if (window.OpinionStage && typeof (OpinionStage.contentPopup) !== 'undefined') {
|
7 |
console.warn('[OpinionStage] content-popup APIs was already included')
|
8 |
}
|
9 |
|
10 |
;(function (OS, $) {
|
11 |
class WidgetList {
|
12 |
+
constructor() {
|
13 |
// vuejs vm instance
|
14 |
this.app = undefined
|
15 |
}
|
16 |
|
17 |
show(onWidgetSelect) {
|
18 |
+
if (typeof (onWidgetSelect) !== 'function') {
|
19 |
+
onWidgetSelect = function () {
|
20 |
+
}
|
21 |
}
|
22 |
|
23 |
const content = $('[data-opinionstage-content-popup-template]').html()
|
26 |
if (!this.app) {
|
27 |
this.app = new ContentPopupContent()
|
28 |
}
|
29 |
+
|
30 |
|
31 |
this.app.widgetType = WIDGET_ALL
|
32 |
this.app.isModalOpened = true
|
assets/gutenberg/build/index.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-blocks', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-blocks', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'a62b5cdd19177a5e403e7fa5cbeb2e62');
|
assets/gutenberg/build/index.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function r(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(a,i,function(t){return e[t]}.bind(null,i));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,r){},function(e,t,r){"use strict";r.r(t);var a=r(2),i=r(1),o=r(0),n=(r(3),{widgetType:{type:"string",source:"attribute",attribute:"data-type",selector:"div[data-type]"},embedUrl:{source:"attribute",attribute:"data-test-url",selector:"div[data-test-url]"},lockEmbed:{source:"attribute",attribute:"data-lock-embed",selector:"div[data-lock-embed]"},buttonText:{source:"attribute",attribute:"data-button-text",selector:"div[data-button-text]"},insertItemImage:{source:"attribute",attribute:"data-image-url",selector:"div[data-image-url]"},insertItemOsTitle:{source:"attribute",attribute:"data-title-url",selector:"div[data-title-url]"},insertItemOsView:{source:"attribute",attribute:"data-view-url",selector:"div[data-view-url]"},insertItemOsEdit:{source:"attribute",attribute:"data-edit-url",selector:"div[data-edit-url]"},insertItemOsStatistics:{source:"attribute",attribute:"data-statistics-url",selector:"div[data-statistics-url]"}}),s="opinion-stage",c={html:!1};function l(e){var t=e.name,r=e.className,n=e.attributes,s=e.setAttributes,c=e.clientId,l=(n.widgetType,n.embedUrl),p=(n.lockEmbed,n.buttonText),b=n.insertItemImage,m=n.insertItemOsTitle,d=n.insertItemOsView,g=n.insertItemOsEdit,O=n.insertItemOsStatistics;if("false"===OPINIONSTAGE_GUTENBERG_DATA.userLoggedIn)return Object(o.createElement)("div",{className:r},Object(o.createElement)("div",{className:"os-widget-wrapper components-placeholder"},Object(o.createElement)("p",{className:"components-heading"},Object(o.createElement)("img",{src:OPINIONSTAGE_GUTENBERG_DATA.brandLogoUrl,alt:""})),Object(o.createElement)("p",{className:"components-heading"},"Please connect WordPress to Opinion Stage to start adding polls, quizzes, surveys & forms"),Object(o.createElement)("a",{href:OPINIONSTAGE_GUTENBERG_DATA.loginPageUrl,className:"components-button is-button is-default is-block is-primary"},"Connect")));var y=function(e){switch(e){case"opinion-stage/block-os-poll":return"poll";case"opinion-stage/block-os-survey":return"survey";case"opinion-stage/block-os-trivia":return"trivia";case"opinion-stage/block-os-personality":return"personality";case"opinion-stage/block-os-form":return"form";default:console.warn("unknown block name:",e)}}(t),v=function(e){switch(e){case"poll":return Object(i.__)("Poll");case"survey":return Object(i.__)("Survey");case"trivia":return Object(i.__)("Trivia Quiz");case"personality":return Object(i.__)("Personality Quiz");case"form":return Object(i.__)("Standard Form")}}(y),_=function(e){var t=function(e){switch(e){case"poll":return"poll";case"survey":return"survey";case"trivia":return"trivia";case"personality":return"personality";case"form":return"form"}}(e.type),r={widgetType:t,lockEmbed:!0,buttonText:"Change",embedUrl:e.landingPageUrl.replace(/^https?:\/\/[^/]+\//,"/"),insertItemImage:e.imageUrl,insertItemOsTitle:e.title,insertItemOsView:e.landingPageUrl,insertItemOsEdit:e.editUrl,insertItemOsStatistics:e.statsUrl};if(t===y)s(r);else{var i=Object(a.createBlock)(function(e){switch(e){case"poll":return"opinion-stage/block-os-poll";case"survey":return"opinion-stage/block-os-survey";case"trivia":return"opinion-stage/block-os-trivia";case"personality":return"opinion-stage/block-os-personality";case"form":return"opinion-stage/block-os-form";default:console.warn("unknown block widget type:",e)}}(t));i.attributes=r,wp.data.dispatch("core/block-editor").replaceBlock(c,i)}},f=function(e){OpinionStage.contentPopup.open({preselectWidgetType:u(y),onWidgetSelect:_})},E="".concat(OPINIONSTAGE_GUTENBERG_DATA.createNewWidgetUrl,"&w_type=").concat(function(e){switch(e){case"poll":return"poll";case"survey":return"survey";case"trivia":return"quiz";case"personality":return"outcome";case"form":return"contact_form"}}(y)),j="".concat(OPINIONSTAGE_GUTENBERG_DATA.viewTemplateUrl,"&page=").concat(function(e){switch(e){case"poll":return"polls";case"survey":return"surveys";case"trivia":return"trivia_quizzes";case"personality":return"personality_quizzes";case"form":return"classic_forms"}}(y)),w=Object(o.createElement)("div",{className:"os-widget-wrapper components-placeholder"},Object(o.createElement)("p",{className:"components-heading"},Object(o.createElement)("img",{src:OPINIONSTAGE_GUTENBERG_DATA.brandLogoUrl,alt:""})),Object(o.createElement)("button",{className:"components-button is-button is-default is-block is-primary",onClick:f},"Select a ",v),Object(o.createElement)("a",{href:E,target:"_blank",className:"components-button is-button is-default is-block is-primary"},"Create a ",v),Object(o.createElement)("a",{href:j,target:"_blank",className:"components-button is-button is-default is-block is-primary is-bordered"},"View Templates"));return l&&""!==l?"Change"===p&&(w=Object(o.createElement)("div",{className:"os-widget-wrapper components-placeholder"},Object(o.createElement)("p",{className:"components-heading"},Object(o.createElement)("img",{src:OPINIONSTAGE_GUTENBERG_DATA.brandLogoUrl,alt:""})),Object(o.createElement)("div",{className:"components-preview__block"},Object(o.createElement)("div",{className:"components-preview__leftBlockImage"},Object(o.createElement)("img",{src:b,alt:m,className:"image"}),Object(o.createElement)("div",{className:"overlay"},Object(o.createElement)("div",{className:"text"},Object(o.createElement)("a",{href:d,target:"_blank"},"
|
1 |
+
!function(e){var t={};function r(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(a,i,function(t){return e[t]}.bind(null,i));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,r){},function(e,t,r){"use strict";r.r(t);var a=r(2),i=r(1),o=r(0),n=(r(3),{widgetType:{type:"string",source:"attribute",attribute:"data-type",selector:"div[data-type]"},embedUrl:{source:"attribute",attribute:"data-test-url",selector:"div[data-test-url]"},lockEmbed:{source:"attribute",attribute:"data-lock-embed",selector:"div[data-lock-embed]"},buttonText:{source:"attribute",attribute:"data-button-text",selector:"div[data-button-text]"},insertItemImage:{source:"attribute",attribute:"data-image-url",selector:"div[data-image-url]"},insertItemOsTitle:{source:"attribute",attribute:"data-title-url",selector:"div[data-title-url]"},insertItemOsView:{source:"attribute",attribute:"data-view-url",selector:"div[data-view-url]"},insertItemOsEdit:{source:"attribute",attribute:"data-edit-url",selector:"div[data-edit-url]"},insertItemOsStatistics:{source:"attribute",attribute:"data-statistics-url",selector:"div[data-statistics-url]"}}),s="opinion-stage",c={html:!1};function l(e){var t=e.name,r=e.className,n=e.attributes,s=e.setAttributes,c=e.clientId,l=(n.widgetType,n.embedUrl),p=(n.lockEmbed,n.buttonText),b=n.insertItemImage,m=n.insertItemOsTitle,d=n.insertItemOsView,g=n.insertItemOsEdit,O=n.insertItemOsStatistics;if("false"===OPINIONSTAGE_GUTENBERG_DATA.userLoggedIn)return Object(o.createElement)("div",{className:r},Object(o.createElement)("div",{className:"os-widget-wrapper components-placeholder"},Object(o.createElement)("p",{className:"components-heading"},Object(o.createElement)("img",{src:OPINIONSTAGE_GUTENBERG_DATA.brandLogoUrl,alt:""})),Object(o.createElement)("p",{className:"components-heading"},"Please connect WordPress to Opinion Stage to start adding polls, quizzes, surveys & forms"),Object(o.createElement)("a",{href:OPINIONSTAGE_GUTENBERG_DATA.loginPageUrl,className:"components-button is-button is-default is-block is-primary"},"Connect")));var y=function(e){switch(e){case"opinion-stage/block-os-poll":return"poll";case"opinion-stage/block-os-survey":return"survey";case"opinion-stage/block-os-trivia":return"trivia";case"opinion-stage/block-os-personality":return"personality";case"opinion-stage/block-os-form":return"form";default:console.warn("unknown block name:",e)}}(t),v=function(e){switch(e){case"poll":return Object(i.__)("Poll");case"survey":return Object(i.__)("Survey");case"trivia":return Object(i.__)("Trivia Quiz");case"personality":return Object(i.__)("Personality Quiz");case"form":return Object(i.__)("Standard Form")}}(y),_=function(e){var t=function(e){switch(e){case"poll":return"poll";case"survey":return"survey";case"trivia":return"trivia";case"personality":return"personality";case"form":return"form"}}(e.type),r={widgetType:t,lockEmbed:!0,buttonText:"Change",embedUrl:e.landingPageUrl.replace(/^https?:\/\/[^/]+\//,"/"),insertItemImage:e.imageUrl,insertItemOsTitle:e.title,insertItemOsView:e.landingPageUrl,insertItemOsEdit:e.editUrl,insertItemOsStatistics:e.statsUrl};if(t===y)s(r);else{var i=Object(a.createBlock)(function(e){switch(e){case"poll":return"opinion-stage/block-os-poll";case"survey":return"opinion-stage/block-os-survey";case"trivia":return"opinion-stage/block-os-trivia";case"personality":return"opinion-stage/block-os-personality";case"form":return"opinion-stage/block-os-form";default:console.warn("unknown block widget type:",e)}}(t));i.attributes=r,wp.data.dispatch("core/block-editor").replaceBlock(c,i)}},f=function(e){OpinionStage.contentPopup.open({preselectWidgetType:u(y),onWidgetSelect:_})},E="".concat(OPINIONSTAGE_GUTENBERG_DATA.createNewWidgetUrl,"&w_type=").concat(function(e){switch(e){case"poll":return"poll";case"survey":return"survey";case"trivia":return"quiz";case"personality":return"outcome";case"form":return"contact_form"}}(y)),j="".concat(OPINIONSTAGE_GUTENBERG_DATA.viewTemplateUrl,"&page=").concat(function(e){switch(e){case"poll":return"polls";case"survey":return"surveys";case"trivia":return"trivia_quizzes";case"personality":return"personality_quizzes";case"form":return"classic_forms"}}(y)),w=Object(o.createElement)("div",{className:"os-widget-wrapper components-placeholder"},Object(o.createElement)("p",{className:"components-heading"},Object(o.createElement)("img",{src:OPINIONSTAGE_GUTENBERG_DATA.brandLogoUrl,alt:""})),Object(o.createElement)("button",{className:"components-button is-button is-default is-block is-primary",onClick:f},"Select a ",v),Object(o.createElement)("a",{href:E,target:"_blank",className:"components-button is-button is-default is-block is-primary"},"Create a ",v),Object(o.createElement)("a",{href:j,target:"_blank",className:"components-button is-button is-default is-block is-primary is-bordered"},"View Templates"));return l&&""!==l?"Change"===p&&(w=Object(o.createElement)("div",{className:"os-widget-wrapper components-placeholder"},Object(o.createElement)("p",{className:"components-heading"},Object(o.createElement)("img",{src:OPINIONSTAGE_GUTENBERG_DATA.brandLogoUrl,alt:""})),Object(o.createElement)("div",{className:"components-preview__block"},Object(o.createElement)("div",{className:"components-preview__leftBlockImage"},Object(o.createElement)("img",{src:b,alt:m,className:"image"}),Object(o.createElement)("div",{className:"overlay"},Object(o.createElement)("div",{className:"text"},Object(o.createElement)("a",{href:d,target:"_blank"},"View"),Object(o.createElement)("a",{href:g,target:"_blank"},"Edit"),Object(o.createElement)("a",{href:O,target:"_blank"},"Statistics"),Object(o.createElement)("input",{type:"button",value:p,className:"components-button is-button is-default is-large left-align",onClick:f})))),Object(o.createElement)("div",{className:"components-preview__rightBlockContent"},Object(o.createElement)("div",{className:"components-placeholder__label"},v,": ",m))))):s({buttonText:"Embed"}),Object(o.createElement)("div",{className:r},w)}function u(e){switch(e){case"poll":return OpinionStage.contentPopup.WIDGET_POLL;case"survey":return OpinionStage.contentPopup.WIDGET_SURVEY;case"trivia":return OpinionStage.contentPopup.WIDGET_TRIVIA_QUIZ;case"personality":return OpinionStage.contentPopup.WIDGET_PERSONALITY_QUIZ;case"form":return OpinionStage.contentPopup.WIDGET_FORM}}function p(e){var t=e.attributes,r=t.widgetType,a=t.embedUrl,i=t.lockEmbed,n=t.buttonText,s=t.insertItemImage,c=t.insertItemOsTitle,l=t.insertItemOsView,u=t.insertItemOsEdit,p=t.insertItemOsStatistics;return Object(o.createElement)("div",{class:b(r),"data-type":r,"data-image-url":s,"data-title-url":c,"data-view-url":l,"data-statistics-url":p,"data-edit-url":u,"data-test-url":a,"data-lock-embed":i,"data-button-text":n},'[os-widget path="',a,'"]',Object(o.createElement)("span",null))}function b(e){if(!e)return null;switch(e){case"poll":return"os-poll-wrapper";case"survey":return"os-survey-wrapper";case"trivia":return"os-trivia-wrapper";case"personality":return"os-personality-wrapper";case"form":return"os-form-wrapper";default:console.warn("unknown widget type:",e)}}Object(a.registerBlockType)("opinion-stage/block-os-poll",{title:"[Opinion Stage] Poll",icon:"chart-bar",description:Object(i.__)("Embed an Opinion Stage Poll","social-polls-by-opinionstage"),category:s,keywords:[Object(i.__)("poll","social-polls-by-opinionstage"),Object(i.__)("social poll","social-polls-by-opinionstage")],supports:c,attributes:n,edit:l,save:p}),Object(a.registerBlockType)("opinion-stage/block-os-survey",{title:"[Opinion Stage] Survey",icon:"list-view",description:Object(i.__)("Embed an Opinion Stage Survey","social-polls-by-opinionstage"),category:s,keywords:[Object(i.__)("survey","social-polls-by-opinionstage")],supports:c,attributes:n,edit:l,save:p}),Object(a.registerBlockType)("opinion-stage/block-os-trivia",{title:"[Opinion Stage] Trivia Quiz",icon:"yes",description:Object(i.__)("Embed an Opinion Stage Trivia Quiz","social-polls-by-opinionstage"),category:s,keywords:[Object(i.__)("quiz","social-polls-by-opinionstage"),Object(i.__)("trivia","social-polls-by-opinionstage")],supports:c,attributes:n,edit:l,save:p}),Object(a.registerBlockType)("opinion-stage/block-os-personality",{title:"[Opinion Stage] Personality Quiz",icon:"smiley",description:Object(i.__)("Embed an Opinion Stage Personality Quiz","social-polls-by-opinionstage"),category:s,keywords:[Object(i.__)("personality","social-polls-by-opinionstage"),Object(i.__)("quiz","social-polls-by-opinionstage"),Object(i.__)("outcome","social-polls-by-opinionstage")],supports:c,attributes:n,edit:l,save:p}),Object(a.registerBlockType)("opinion-stage/block-os-form",{title:"[Opinion Stage] Standard Form",icon:"editor-justify",description:Object(i.__)("Embed an Opinion Stage Form","social-polls-by-opinionstage"),category:s,keywords:[Object(i.__)("form","social-polls-by-opinionstage"),Object(i.__)("contact form","social-polls-by-opinionstage")],supports:c,attributes:n,edit:l,save:p})}]);
|
assets/gutenberg/src/configuration.js
CHANGED
@@ -1,58 +1,58 @@
|
|
1 |
// https://developer.wordpress.org/block-editor/developers/block-api/block-attributes/
|
2 |
export const attributes = {
|
3 |
widgetType: {
|
4 |
-
type:
|
5 |
-
source:
|
6 |
attribute: 'data-type',
|
7 |
-
selector:
|
8 |
},
|
9 |
|
10 |
embedUrl: {
|
11 |
-
source:
|
12 |
attribute: 'data-test-url',
|
13 |
-
selector:
|
14 |
},
|
15 |
|
16 |
lockEmbed: {
|
17 |
-
source:
|
18 |
attribute: 'data-lock-embed',
|
19 |
-
selector:
|
20 |
},
|
21 |
|
22 |
buttonText: {
|
23 |
-
source:
|
24 |
attribute: 'data-button-text',
|
25 |
-
selector:
|
26 |
},
|
27 |
|
28 |
insertItemImage: {
|
29 |
-
source:
|
30 |
attribute: 'data-image-url',
|
31 |
-
selector:
|
32 |
},
|
33 |
|
34 |
insertItemOsTitle: {
|
35 |
-
source:
|
36 |
attribute: 'data-title-url',
|
37 |
-
selector:
|
38 |
},
|
39 |
|
40 |
insertItemOsView: {
|
41 |
-
source:
|
42 |
attribute: 'data-view-url',
|
43 |
-
selector:
|
44 |
},
|
45 |
|
46 |
insertItemOsEdit: {
|
47 |
-
source:
|
48 |
attribute: 'data-edit-url',
|
49 |
-
selector:
|
50 |
},
|
51 |
|
52 |
insertItemOsStatistics: {
|
53 |
-
source:
|
54 |
attribute: 'data-statistics-url',
|
55 |
-
selector:
|
56 |
},
|
57 |
}
|
58 |
|
@@ -64,8 +64,8 @@ export const supports = {
|
|
64 |
}
|
65 |
|
66 |
// block widget types (values of widgetType attribute):
|
67 |
-
export const WIDGET_POLL
|
68 |
export const WIDGET_PERSONALITY_QUIZ = 'personality'
|
69 |
-
export const WIDGET_TRIVIA_QUIZ
|
70 |
-
export const WIDGET_SURVEY
|
71 |
-
export const WIDGET_FORM
|
1 |
// https://developer.wordpress.org/block-editor/developers/block-api/block-attributes/
|
2 |
export const attributes = {
|
3 |
widgetType: {
|
4 |
+
type: 'string',
|
5 |
+
source: 'attribute',
|
6 |
attribute: 'data-type',
|
7 |
+
selector: 'div[data-type]',
|
8 |
},
|
9 |
|
10 |
embedUrl: {
|
11 |
+
source: 'attribute',
|
12 |
attribute: 'data-test-url',
|
13 |
+
selector: 'div[data-test-url]',
|
14 |
},
|
15 |
|
16 |
lockEmbed: {
|
17 |
+
source: 'attribute',
|
18 |
attribute: 'data-lock-embed',
|
19 |
+
selector: 'div[data-lock-embed]',
|
20 |
},
|
21 |
|
22 |
buttonText: {
|
23 |
+
source: 'attribute',
|
24 |
attribute: 'data-button-text',
|
25 |
+
selector: 'div[data-button-text]',
|
26 |
},
|
27 |
|
28 |
insertItemImage: {
|
29 |
+
source: 'attribute',
|
30 |
attribute: 'data-image-url',
|
31 |
+
selector: 'div[data-image-url]',
|
32 |
},
|
33 |
|
34 |
insertItemOsTitle: {
|
35 |
+
source: 'attribute',
|
36 |
attribute: 'data-title-url',
|
37 |
+
selector: 'div[data-title-url]',
|
38 |
},
|
39 |
|
40 |
insertItemOsView: {
|
41 |
+
source: 'attribute',
|
42 |
attribute: 'data-view-url',
|
43 |
+
selector: 'div[data-view-url]',
|
44 |
},
|
45 |
|
46 |
insertItemOsEdit: {
|
47 |
+
source: 'attribute',
|
48 |
attribute: 'data-edit-url',
|
49 |
+
selector: 'div[data-edit-url]',
|
50 |
},
|
51 |
|
52 |
insertItemOsStatistics: {
|
53 |
+
source: 'attribute',
|
54 |
attribute: 'data-statistics-url',
|
55 |
+
selector: 'div[data-statistics-url]',
|
56 |
},
|
57 |
}
|
58 |
|
64 |
}
|
65 |
|
66 |
// block widget types (values of widgetType attribute):
|
67 |
+
export const WIDGET_POLL = 'poll'
|
68 |
export const WIDGET_PERSONALITY_QUIZ = 'personality'
|
69 |
+
export const WIDGET_TRIVIA_QUIZ = 'trivia'
|
70 |
+
export const WIDGET_SURVEY = 'survey'
|
71 |
+
export const WIDGET_FORM = 'form'
|
assets/gutenberg/src/edit.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
import {
|
2 |
-
import {
|
3 |
|
4 |
import './editor.scss'
|
5 |
// values for widgetType attribute:
|
@@ -11,7 +11,7 @@ import {
|
|
11 |
WIDGET_FORM,
|
12 |
} from './configuration.js'
|
13 |
|
14 |
-
export default function Edit
|
15 |
let {
|
16 |
widgetType,
|
17 |
embedUrl,
|
@@ -24,13 +24,19 @@ export default function Edit ({ name, className, attributes, setAttributes, /*is
|
|
24 |
insertItemOsStatistics,
|
25 |
} = attributes
|
26 |
|
27 |
-
if (
|
28 |
return (
|
29 |
-
<div className={
|
30 |
<div className="os-widget-wrapper components-placeholder">
|
31 |
-
<p className="components-heading"
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
</div>
|
35 |
</div>
|
36 |
)
|
@@ -42,18 +48,18 @@ export default function Edit ({ name, className, attributes, setAttributes, /*is
|
|
42 |
const placeWidget = function (widget) {
|
43 |
const selectedWidgetType = backendWidgetTypeToBlockWidgetType(widget.type)
|
44 |
const newAttributes = {
|
45 |
-
widgetType:
|
46 |
-
lockEmbed:
|
47 |
-
buttonText:
|
48 |
-
embedUrl:
|
49 |
-
insertItemImage:
|
50 |
-
insertItemOsTitle:
|
51 |
-
insertItemOsView:
|
52 |
-
insertItemOsEdit:
|
53 |
insertItemOsStatistics: widget.statsUrl,
|
54 |
}
|
55 |
|
56 |
-
if (
|
57 |
setAttributes(newAttributes)
|
58 |
} else {
|
59 |
// on widget type change we also want to change block,
|
@@ -70,7 +76,10 @@ export default function Edit ({ name, className, attributes, setAttributes, /*is
|
|
70 |
}
|
71 |
|
72 |
const selectWidget = _event => {
|
73 |
-
OpinionStage.contentPopup.open({
|
|
|
|
|
|
|
74 |
}
|
75 |
|
76 |
let createNewWidgetUrl = `${OPINIONSTAGE_GUTENBERG_DATA.createNewWidgetUrl}&w_type=${backendWidgetTypeForNewWidget(currentWidgetType)}`
|
@@ -78,27 +87,36 @@ export default function Edit ({ name, className, attributes, setAttributes, /*is
|
|
78 |
|
79 |
let contentViewEditStatOs = (
|
80 |
<div className="os-widget-wrapper components-placeholder">
|
81 |
-
<p className="components-heading"
|
82 |
-
|
83 |
-
|
84 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
</div>
|
86 |
)
|
87 |
|
88 |
-
if (
|
89 |
-
if (
|
90 |
contentViewEditStatOs = (
|
91 |
<div className="os-widget-wrapper components-placeholder">
|
92 |
-
<p className="components-heading"
|
93 |
-
|
|
|
|
|
94 |
<div className="components-preview__leftBlockImage">
|
95 |
-
<img src={insertItemImage} alt={insertItemOsTitle} className="image"
|
96 |
<div className="overlay">
|
97 |
<div className="text">
|
98 |
-
<a href={insertItemOsView} target="_blank">
|
99 |
-
<a href={insertItemOsEdit} target="_blank">
|
100 |
-
<a href={insertItemOsStatistics} target="_blank">
|
101 |
-
<input type="button" value={buttonText}
|
|
|
102 |
</div>
|
103 |
</div>
|
104 |
</div>
|
@@ -110,142 +128,158 @@ export default function Edit ({ name, className, attributes, setAttributes, /*is
|
|
110 |
)
|
111 |
}
|
112 |
} else {
|
113 |
-
setAttributes({
|
114 |
}
|
115 |
|
116 |
return (
|
117 |
-
<div className={
|
118 |
{contentViewEditStatOs}
|
119 |
</div>
|
120 |
)
|
121 |
}
|
122 |
|
123 |
-
function widgetTypeFromBlockName
|
124 |
-
switch (
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
|
|
|
|
|
|
|
|
|
|
137 |
}
|
138 |
}
|
139 |
|
140 |
// opposite to widgetTypeFromBlockName
|
141 |
-
function blockName
|
142 |
-
switch (
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
|
|
|
|
|
|
|
|
|
|
155 |
}
|
156 |
}
|
157 |
|
158 |
-
function widgetTitleFromType
|
159 |
-
switch (
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
}
|
176 |
}
|
177 |
|
178 |
-
function backendWidgetTypeForNewWidget
|
179 |
-
switch (
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
}
|
196 |
}
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
|
|
214 |
}
|
215 |
}
|
216 |
|
217 |
// backend API endpoint returns these widget types:
|
218 |
-
function backendWidgetTypeToBlockWidgetType
|
219 |
-
switch (
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
}
|
236 |
}
|
237 |
|
238 |
-
function contentPopupWidgetType
|
239 |
-
switch (
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
|
|
|
|
|
|
|
|
|
|
250 |
}
|
251 |
}
|
1 |
+
import {__} from '@wordpress/i18n'
|
2 |
+
import {createBlock} from '@wordpress/blocks'
|
3 |
|
4 |
import './editor.scss'
|
5 |
// values for widgetType attribute:
|
11 |
WIDGET_FORM,
|
12 |
} from './configuration.js'
|
13 |
|
14 |
+
export default function Edit({name, className, attributes, setAttributes, /*isSelected,*/ clientId}) {
|
15 |
let {
|
16 |
widgetType,
|
17 |
embedUrl,
|
24 |
insertItemOsStatistics,
|
25 |
} = attributes
|
26 |
|
27 |
+
if (OPINIONSTAGE_GUTENBERG_DATA.userLoggedIn === 'false') {
|
28 |
return (
|
29 |
+
<div className={className}>
|
30 |
<div className="os-widget-wrapper components-placeholder">
|
31 |
+
<p className="components-heading">
|
32 |
+
<img src={OPINIONSTAGE_GUTENBERG_DATA.brandLogoUrl} alt=""/>
|
33 |
+
</p>
|
34 |
+
<p className="components-heading">Please connect WordPress to Opinion Stage to start adding polls, quizzes,
|
35 |
+
surveys & forms
|
36 |
+
</p>
|
37 |
+
<a href={OPINIONSTAGE_GUTENBERG_DATA.loginPageUrl}
|
38 |
+
className="components-button is-button is-default is-block is-primary">Connect
|
39 |
+
</a>
|
40 |
</div>
|
41 |
</div>
|
42 |
)
|
48 |
const placeWidget = function (widget) {
|
49 |
const selectedWidgetType = backendWidgetTypeToBlockWidgetType(widget.type)
|
50 |
const newAttributes = {
|
51 |
+
widgetType: selectedWidgetType,
|
52 |
+
lockEmbed: true,
|
53 |
+
buttonText: 'Change',
|
54 |
+
embedUrl: widget.landingPageUrl.replace(/^https?:\/\/[^/]+\//, '/'),
|
55 |
+
insertItemImage: widget.imageUrl,
|
56 |
+
insertItemOsTitle: widget.title,
|
57 |
+
insertItemOsView: widget.landingPageUrl,
|
58 |
+
insertItemOsEdit: widget.editUrl,
|
59 |
insertItemOsStatistics: widget.statsUrl,
|
60 |
}
|
61 |
|
62 |
+
if (selectedWidgetType === currentWidgetType) {
|
63 |
setAttributes(newAttributes)
|
64 |
} else {
|
65 |
// on widget type change we also want to change block,
|
76 |
}
|
77 |
|
78 |
const selectWidget = _event => {
|
79 |
+
OpinionStage.contentPopup.open({
|
80 |
+
preselectWidgetType: contentPopupWidgetType(currentWidgetType),
|
81 |
+
onWidgetSelect: placeWidget
|
82 |
+
})
|
83 |
}
|
84 |
|
85 |
let createNewWidgetUrl = `${OPINIONSTAGE_GUTENBERG_DATA.createNewWidgetUrl}&w_type=${backendWidgetTypeForNewWidget(currentWidgetType)}`
|
87 |
|
88 |
let contentViewEditStatOs = (
|
89 |
<div className="os-widget-wrapper components-placeholder">
|
90 |
+
<p className="components-heading">
|
91 |
+
<img src={OPINIONSTAGE_GUTENBERG_DATA.brandLogoUrl} alt=""/>
|
92 |
+
</p>
|
93 |
+
<button className="components-button is-button is-default is-block is-primary" onClick={selectWidget}>Select
|
94 |
+
a {currentWidgetTitle}</button>
|
95 |
+
<a href={createNewWidgetUrl} target="_blank"
|
96 |
+
className="components-button is-button is-default is-block is-primary">Create a {currentWidgetTitle}</a>
|
97 |
+
<a href={viewTemplateUrl} target="_blank"
|
98 |
+
className="components-button is-button is-default is-block is-primary is-bordered">View Templates
|
99 |
+
</a>
|
100 |
</div>
|
101 |
)
|
102 |
|
103 |
+
if (embedUrl && embedUrl !== '') {
|
104 |
+
if (buttonText === 'Change') {
|
105 |
contentViewEditStatOs = (
|
106 |
<div className="os-widget-wrapper components-placeholder">
|
107 |
+
<p className="components-heading">
|
108 |
+
<img src={OPINIONSTAGE_GUTENBERG_DATA.brandLogoUrl} alt=""/>
|
109 |
+
</p>
|
110 |
+
<div className="components-preview__block">
|
111 |
<div className="components-preview__leftBlockImage">
|
112 |
+
<img src={insertItemImage} alt={insertItemOsTitle} className="image"/>
|
113 |
<div className="overlay">
|
114 |
<div className="text">
|
115 |
+
<a href={insertItemOsView} target="_blank">View</a>
|
116 |
+
<a href={insertItemOsEdit} target="_blank">Edit</a>
|
117 |
+
<a href={insertItemOsStatistics} target="_blank">Statistics</a>
|
118 |
+
<input type="button" value={buttonText}
|
119 |
+
className="components-button is-button is-default is-large left-align" onClick={selectWidget}/>
|
120 |
</div>
|
121 |
</div>
|
122 |
</div>
|
128 |
)
|
129 |
}
|
130 |
} else {
|
131 |
+
setAttributes({buttonText: 'Embed'})
|
132 |
}
|
133 |
|
134 |
return (
|
135 |
+
<div className={className}>
|
136 |
{contentViewEditStatOs}
|
137 |
</div>
|
138 |
)
|
139 |
}
|
140 |
|
141 |
+
function widgetTypeFromBlockName(blockName) {
|
142 |
+
switch (blockName) {
|
143 |
+
case 'opinion-stage/block-os-poll':
|
144 |
+
return WIDGET_POLL
|
145 |
+
break
|
146 |
+
case 'opinion-stage/block-os-survey':
|
147 |
+
return WIDGET_SURVEY
|
148 |
+
break
|
149 |
+
case 'opinion-stage/block-os-trivia':
|
150 |
+
return WIDGET_TRIVIA_QUIZ
|
151 |
+
break
|
152 |
+
case 'opinion-stage/block-os-personality':
|
153 |
+
return WIDGET_PERSONALITY_QUIZ
|
154 |
+
break
|
155 |
+
case 'opinion-stage/block-os-form':
|
156 |
+
return WIDGET_FORM
|
157 |
+
break
|
158 |
+
default:
|
159 |
+
console.warn('unknown block name:', blockName)
|
160 |
}
|
161 |
}
|
162 |
|
163 |
// opposite to widgetTypeFromBlockName
|
164 |
+
function blockName(widgetType) {
|
165 |
+
switch (widgetType) {
|
166 |
+
case WIDGET_POLL:
|
167 |
+
return 'opinion-stage/block-os-poll'
|
168 |
+
break
|
169 |
+
case WIDGET_SURVEY:
|
170 |
+
return 'opinion-stage/block-os-survey'
|
171 |
+
break
|
172 |
+
case WIDGET_TRIVIA_QUIZ:
|
173 |
+
return 'opinion-stage/block-os-trivia'
|
174 |
+
break
|
175 |
+
case WIDGET_PERSONALITY_QUIZ:
|
176 |
+
return 'opinion-stage/block-os-personality'
|
177 |
+
break
|
178 |
+
case WIDGET_FORM:
|
179 |
+
return 'opinion-stage/block-os-form'
|
180 |
+
break
|
181 |
+
default:
|
182 |
+
console.warn('unknown block widget type:', widgetType)
|
183 |
}
|
184 |
}
|
185 |
|
186 |
+
function widgetTitleFromType(widgetType) {
|
187 |
+
switch (widgetType) {
|
188 |
+
case WIDGET_POLL:
|
189 |
+
return __('Poll')
|
190 |
+
break
|
191 |
+
case WIDGET_SURVEY:
|
192 |
+
return __('Survey')
|
193 |
+
break
|
194 |
+
case WIDGET_TRIVIA_QUIZ:
|
195 |
+
return __('Trivia Quiz')
|
196 |
+
break
|
197 |
+
case WIDGET_PERSONALITY_QUIZ:
|
198 |
+
return __('Personality Quiz')
|
199 |
+
break
|
200 |
+
case WIDGET_FORM:
|
201 |
+
return __('Standard Form')
|
202 |
+
break
|
203 |
}
|
204 |
}
|
205 |
|
206 |
+
function backendWidgetTypeForNewWidget(widgetType) {
|
207 |
+
switch (widgetType) {
|
208 |
+
case WIDGET_POLL:
|
209 |
+
return 'poll'
|
210 |
+
break
|
211 |
+
case WIDGET_SURVEY:
|
212 |
+
return 'survey'
|
213 |
+
break
|
214 |
+
case WIDGET_TRIVIA_QUIZ:
|
215 |
+
return 'quiz'
|
216 |
+
break
|
217 |
+
case WIDGET_PERSONALITY_QUIZ:
|
218 |
+
return 'outcome'
|
219 |
+
break
|
220 |
+
case WIDGET_FORM:
|
221 |
+
return 'contact_form'
|
222 |
+
break
|
223 |
}
|
224 |
}
|
225 |
+
|
226 |
+
function backendWidgetTypeForViewTemplates(widgetType) {
|
227 |
+
switch (widgetType) {
|
228 |
+
case WIDGET_POLL:
|
229 |
+
return 'polls'
|
230 |
+
break
|
231 |
+
case WIDGET_SURVEY:
|
232 |
+
return 'surveys'
|
233 |
+
break
|
234 |
+
case WIDGET_TRIVIA_QUIZ:
|
235 |
+
return 'trivia_quizzes'
|
236 |
+
break
|
237 |
+
case WIDGET_PERSONALITY_QUIZ:
|
238 |
+
return 'personality_quizzes'
|
239 |
+
break
|
240 |
+
case WIDGET_FORM:
|
241 |
+
return 'classic_forms'
|
242 |
+
break
|
243 |
}
|
244 |
}
|
245 |
|
246 |
// backend API endpoint returns these widget types:
|
247 |
+
function backendWidgetTypeToBlockWidgetType(backendType) {
|
248 |
+
switch (backendType) {
|
249 |
+
case 'poll':
|
250 |
+
return WIDGET_POLL
|
251 |
+
break
|
252 |
+
case 'survey':
|
253 |
+
return WIDGET_SURVEY
|
254 |
+
break
|
255 |
+
case 'trivia':
|
256 |
+
return WIDGET_TRIVIA_QUIZ
|
257 |
+
break
|
258 |
+
case 'personality':
|
259 |
+
return WIDGET_PERSONALITY_QUIZ
|
260 |
+
break
|
261 |
+
case 'form':
|
262 |
+
return WIDGET_FORM
|
263 |
+
break
|
264 |
}
|
265 |
}
|
266 |
|
267 |
+
function contentPopupWidgetType(widgetType) {
|
268 |
+
switch (widgetType) {
|
269 |
+
case WIDGET_POLL:
|
270 |
+
return OpinionStage.contentPopup.WIDGET_POLL
|
271 |
+
break
|
272 |
+
case WIDGET_SURVEY:
|
273 |
+
return OpinionStage.contentPopup.WIDGET_SURVEY
|
274 |
+
break
|
275 |
+
case WIDGET_TRIVIA_QUIZ:
|
276 |
+
return OpinionStage.contentPopup.WIDGET_TRIVIA_QUIZ
|
277 |
+
break
|
278 |
+
case WIDGET_PERSONALITY_QUIZ:
|
279 |
+
return OpinionStage.contentPopup.WIDGET_PERSONALITY_QUIZ
|
280 |
+
break
|
281 |
+
case WIDGET_FORM:
|
282 |
+
return OpinionStage.contentPopup.WIDGET_FORM
|
283 |
+
break
|
284 |
}
|
285 |
}
|
assets/gutenberg/src/index.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
-
import {
|
2 |
-
import {
|
3 |
|
4 |
import Edit from './edit'
|
5 |
import save from './save'
|
6 |
-
import {
|
7 |
|
8 |
registerBlockType('opinion-stage/block-os-poll', {
|
9 |
-
title: '
|
10 |
icon: 'chart-bar',
|
11 |
description: __('Embed an Opinion Stage Poll', 'social-polls-by-opinionstage'),
|
12 |
category,
|
@@ -23,7 +23,7 @@ registerBlockType('opinion-stage/block-os-poll', {
|
|
23 |
})
|
24 |
|
25 |
registerBlockType('opinion-stage/block-os-survey', {
|
26 |
-
title: '
|
27 |
icon: 'list-view',
|
28 |
description: __('Embed an Opinion Stage Survey', 'social-polls-by-opinionstage'),
|
29 |
category,
|
@@ -39,7 +39,7 @@ registerBlockType('opinion-stage/block-os-survey', {
|
|
39 |
})
|
40 |
|
41 |
registerBlockType('opinion-stage/block-os-trivia', {
|
42 |
-
title: '
|
43 |
icon: 'yes',
|
44 |
description: __('Embed an Opinion Stage Trivia Quiz', 'social-polls-by-opinionstage'),
|
45 |
category,
|
@@ -56,7 +56,7 @@ registerBlockType('opinion-stage/block-os-trivia', {
|
|
56 |
})
|
57 |
|
58 |
registerBlockType('opinion-stage/block-os-personality', {
|
59 |
-
title: '
|
60 |
icon: 'smiley',
|
61 |
description: __('Embed an Opinion Stage Personality Quiz', 'social-polls-by-opinionstage'),
|
62 |
category,
|
@@ -74,7 +74,7 @@ registerBlockType('opinion-stage/block-os-personality', {
|
|
74 |
})
|
75 |
|
76 |
registerBlockType('opinion-stage/block-os-form', {
|
77 |
-
title: '
|
78 |
icon: 'editor-justify',
|
79 |
description: __('Embed an Opinion Stage Form', 'social-polls-by-opinionstage'),
|
80 |
category,
|
1 |
+
import {registerBlockType} from '@wordpress/blocks'
|
2 |
+
import {__} from '@wordpress/i18n'
|
3 |
|
4 |
import Edit from './edit'
|
5 |
import save from './save'
|
6 |
+
import {attributes, category, supports} from './configuration'
|
7 |
|
8 |
registerBlockType('opinion-stage/block-os-poll', {
|
9 |
+
title: '[Opinion Stage] Poll',
|
10 |
icon: 'chart-bar',
|
11 |
description: __('Embed an Opinion Stage Poll', 'social-polls-by-opinionstage'),
|
12 |
category,
|
23 |
})
|
24 |
|
25 |
registerBlockType('opinion-stage/block-os-survey', {
|
26 |
+
title: '[Opinion Stage] Survey',
|
27 |
icon: 'list-view',
|
28 |
description: __('Embed an Opinion Stage Survey', 'social-polls-by-opinionstage'),
|
29 |
category,
|
39 |
})
|
40 |
|
41 |
registerBlockType('opinion-stage/block-os-trivia', {
|
42 |
+
title: '[Opinion Stage] Trivia Quiz',
|
43 |
icon: 'yes',
|
44 |
description: __('Embed an Opinion Stage Trivia Quiz', 'social-polls-by-opinionstage'),
|
45 |
category,
|
56 |
})
|
57 |
|
58 |
registerBlockType('opinion-stage/block-os-personality', {
|
59 |
+
title: '[Opinion Stage] Personality Quiz',
|
60 |
icon: 'smiley',
|
61 |
description: __('Embed an Opinion Stage Personality Quiz', 'social-polls-by-opinionstage'),
|
62 |
category,
|
74 |
})
|
75 |
|
76 |
registerBlockType('opinion-stage/block-os-form', {
|
77 |
+
title: '[Opinion Stage] Standard Form',
|
78 |
icon: 'editor-justify',
|
79 |
description: __('Embed an Opinion Stage Form', 'social-polls-by-opinionstage'),
|
80 |
category,
|
assets/gutenberg/src/save.js
CHANGED
@@ -7,7 +7,7 @@ import {
|
|
7 |
WIDGET_FORM,
|
8 |
} from './configuration.js'
|
9 |
|
10 |
-
export default function save({
|
11 |
const {
|
12 |
widgetType,
|
13 |
embedUrl,
|
@@ -21,45 +21,47 @@ export default function save({ attributes }) {
|
|
21 |
} = attributes
|
22 |
|
23 |
return (
|
24 |
-
<div class={
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
>
|
35 |
-
[os-widget path="{
|
36 |
<span></span>
|
37 |
</div>
|
38 |
)
|
39 |
}
|
40 |
|
41 |
// kept as backwards compatibility:
|
42 |
-
function unusedWrapperClassFromWidgetType
|
43 |
// case when widget is not inserted yet:
|
44 |
-
if (
|
|
|
|
|
45 |
|
46 |
-
switch (
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
}
|
65 |
}
|
7 |
WIDGET_FORM,
|
8 |
} from './configuration.js'
|
9 |
|
10 |
+
export default function save({attributes}) {
|
11 |
const {
|
12 |
widgetType,
|
13 |
embedUrl,
|
21 |
} = attributes
|
22 |
|
23 |
return (
|
24 |
+
<div class={unusedWrapperClassFromWidgetType(widgetType)}
|
25 |
+
data-type={widgetType}
|
26 |
+
data-image-url={insertItemImage}
|
27 |
+
data-title-url={insertItemOsTitle}
|
28 |
+
data-view-url={insertItemOsView}
|
29 |
+
data-statistics-url={insertItemOsStatistics}
|
30 |
+
data-edit-url={insertItemOsEdit}
|
31 |
+
data-test-url={embedUrl}
|
32 |
+
data-lock-embed={lockEmbed}
|
33 |
+
data-button-text={buttonText}
|
34 |
>
|
35 |
+
[os-widget path="{embedUrl}"]
|
36 |
<span></span>
|
37 |
</div>
|
38 |
)
|
39 |
}
|
40 |
|
41 |
// kept as backwards compatibility:
|
42 |
+
function unusedWrapperClassFromWidgetType(widgetType) {
|
43 |
// case when widget is not inserted yet:
|
44 |
+
if (!widgetType) {
|
45 |
+
return null
|
46 |
+
}
|
47 |
|
48 |
+
switch (widgetType) {
|
49 |
+
case WIDGET_POLL:
|
50 |
+
return 'os-poll-wrapper'
|
51 |
+
break
|
52 |
+
case WIDGET_SURVEY:
|
53 |
+
return 'os-survey-wrapper'
|
54 |
+
break
|
55 |
+
case WIDGET_TRIVIA_QUIZ:
|
56 |
+
return 'os-trivia-wrapper'
|
57 |
+
break
|
58 |
+
case WIDGET_PERSONALITY_QUIZ:
|
59 |
+
return 'os-personality-wrapper'
|
60 |
+
break
|
61 |
+
case WIDGET_FORM:
|
62 |
+
return 'os-form-wrapper'
|
63 |
+
break
|
64 |
+
default:
|
65 |
+
console.warn('unknown widget type:', widgetType)
|
66 |
}
|
67 |
}
|
opinionstage-polls.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Poll, Survey, Form & Quiz Maker by OpinionStage (Deprecated)
|
4 |
Plugin URI: https://www.opinionstage.com
|
5 |
Description: Add a highly engaging poll, survey, quiz or contact form builder to your site. You can add the poll, survey, quiz or form to any post/page or to the sidebar.
|
6 |
-
Version: 19.8.
|
7 |
Author: OpinionStage.com
|
8 |
Author URI: https://www.opinionstage.com
|
9 |
Text Domain: social-polls-by-opinionstage
|
3 |
Plugin Name: Poll, Survey, Form & Quiz Maker by OpinionStage (Deprecated)
|
4 |
Plugin URI: https://www.opinionstage.com
|
5 |
Description: Add a highly engaging poll, survey, quiz or contact form builder to your site. You can add the poll, survey, quiz or form to any post/page or to the sidebar.
|
6 |
+
Version: 19.8.12
|
7 |
Author: OpinionStage.com
|
8 |
Author URI: https://www.opinionstage.com
|
9 |
Text Domain: social-polls-by-opinionstage
|
plugin.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* Plugin Name: Poll, Survey & Quiz Maker Plugin by Opinion Stage
|
9 |
* Plugin URI: https://www.opinionstage.com
|
10 |
* Description: Add a highly engaging poll, survey, quiz or contact form builder to your site. You can add the poll, survey, quiz or form to any post/page or to the sidebar.
|
11 |
-
* Version: 19.8.
|
12 |
* Author: OpinionStage.com
|
13 |
* Author URI: https://www.opinionstage.com
|
14 |
* Text Domain: social-polls-by-opinionstage
|
@@ -34,7 +34,7 @@ if ( defined( 'WP_DEBUG' ) && true === WP_DEBUG ) {
|
|
34 |
}
|
35 |
}
|
36 |
|
37 |
-
define( 'OPINIONSTAGE_WIDGET_VERSION', '19.8.
|
38 |
|
39 |
define( 'OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage' );
|
40 |
define( 'OPINIONSTAGE_WIDGET_API_KEY', 'wp35e8' );
|
8 |
* Plugin Name: Poll, Survey & Quiz Maker Plugin by Opinion Stage
|
9 |
* Plugin URI: https://www.opinionstage.com
|
10 |
* Description: Add a highly engaging poll, survey, quiz or contact form builder to your site. You can add the poll, survey, quiz or form to any post/page or to the sidebar.
|
11 |
+
* Version: 19.8.12
|
12 |
* Author: OpinionStage.com
|
13 |
* Author URI: https://www.opinionstage.com
|
14 |
* Text Domain: social-polls-by-opinionstage
|
34 |
}
|
35 |
}
|
36 |
|
37 |
+
define( 'OPINIONSTAGE_WIDGET_VERSION', '19.8.12' );
|
38 |
|
39 |
define( 'OPINIONSTAGE_TEXT_DOMAIN', 'social-polls-by-opinionstage' );
|
40 |
define( 'OPINIONSTAGE_WIDGET_API_KEY', 'wp35e8' );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.opinionstage.com
|
|
4 |
Tags: poll, quiz, survey, poll plugin, quiz plugin, survey plugin
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 5.8.1
|
7 |
-
Stable tag: 19.8.
|
8 |
Requires PHP: 7.0
|
9 |
|
10 |
Add a Poll, Survey, or Quiz Plugin to your WordPress site. Create a poll, quiz, or survey from scratch or based on templates.
|
@@ -150,6 +150,9 @@ Opinion Stage makes it easy for you to comply with the GDPR regulation. For more
|
|
150 |
N/A
|
151 |
|
152 |
== Changelog ==
|
|
|
|
|
|
|
153 |
= 19.8.11 =
|
154 |
* new tutorials & help experience
|
155 |
* new getting started experience
|
4 |
Tags: poll, quiz, survey, poll plugin, quiz plugin, survey plugin
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 5.8.1
|
7 |
+
Stable tag: 19.8.12
|
8 |
Requires PHP: 7.0
|
9 |
|
10 |
Add a Poll, Survey, or Quiz Plugin to your WordPress site. Create a poll, quiz, or survey from scratch or based on templates.
|
150 |
N/A
|
151 |
|
152 |
== Changelog ==
|
153 |
+
= 19.8.12 =
|
154 |
+
* internal code improvements
|
155 |
+
* tiny UI update
|
156 |
= 19.8.11 =
|
157 |
* new tutorials & help experience
|
158 |
* new getting started experience
|