pop up
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
37 changed files
with
162 additions
and
3140 deletions
| 1 | .swal2-popup .swal2-title | ||
| 2 | { | ||
| 3 | font-weight: normal !important; | ||
| 4 | font-size: 21px !important | ||
| 5 | } | ||
| 6 | .swal2-popup .swal2-styled:focus { | ||
| 7 | box-shadow: none !important; | ||
| 8 | } | ||
| 9 | .swal2-show { | ||
| 10 | border: none !important; | ||
| 11 | |||
| 12 | } | ||
| 13 | button.swal2-confirm.swal2-styled | ||
| 14 | { | ||
| 15 | font-size: 14px !important; | ||
| 16 | padding: 5px 25px !important; | ||
| 17 | } | ||
| 18 | h1:not(.site-title):before, h2#swal2-title:before { | ||
| 19 | content: "" !important; | ||
| 20 | height: 0; | ||
| 21 | } |
| 1 | @-webkit-keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}body.swal2-toast-shown .swal2-container{position:fixed;background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-shown{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validationerror{font-size:1em}.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;box-shadow:0 0 .625em #d9d9d9;overflow-y:hidden}.swal2-popup.swal2-toast .swal2-header{flex-direction:row}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:initial;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon-text{font-size:2em;font-weight:700;line-height:1em}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 .0625em #fff,0 0 0 .125em rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:2em;height:2.8125em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.25em;left:-.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:2em 2em;transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;-webkit-transform-origin:0 2em;transform-origin:0 2em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:showSweetToast .5s;animation:showSweetToast .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:hideSweetToast .2s forwards;animation:hideSweetToast .2s forwards}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:animate-toast-success-tip .75s;animation:animate-toast-success-tip .75s}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:animate-toast-success-long .75s;animation:animate-toast-success-long .75s}@-webkit-keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@-webkit-keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes animate-toast-success-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes animate-toast-success-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-shown{top:auto;right:auto;bottom:auto;left:auto;background-color:transparent}body.swal2-no-backdrop .swal2-shown>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-shown.swal2-top{top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-top-left,body.swal2-no-backdrop .swal2-shown.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-top-end,body.swal2-no-backdrop .swal2-shown.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-shown.swal2-center{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-left,body.swal2-no-backdrop .swal2-shown.swal2-center-start{top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-end,body.swal2-no-backdrop .swal2-shown.swal2-center-right{top:50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom{bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom-left,body.swal2-no-backdrop .swal2-shown.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-bottom-end,body.swal2-no-backdrop .swal2-shown.swal2-bottom-right{right:0;bottom:0}.swal2-container{display:flex;position:fixed;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:10px;background-color:transparent;z-index:1060;overflow-x:hidden;-webkit-overflow-scrolling:touch}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-container.swal2-fade{transition:background-color .1s}.swal2-container.swal2-shown{background-color:rgba(0,0,0,.4)}.swal2-popup{display:none;position:relative;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem;box-sizing:border-box}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-popup .swal2-header{display:flex;flex-direction:column;align-items:center}.swal2-popup .swal2-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-popup .swal2-actions{align-items:center;justify-content:center;margin:1.25em auto 0;z-index:1}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-confirm{width:2.5em;height:2.5em;margin:.46875em;padding:0;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent;cursor:default;box-sizing:border-box;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-popup .swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{display:inline-block;width:15px;height:15px;margin-left:5px;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff;content:'';-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal}.swal2-popup .swal2-styled{margin:0 .3125em;padding:.625em 2em;font-weight:500;box-shadow:none}.swal2-popup .swal2-styled:not([disabled]){cursor:pointer}.swal2-popup .swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.swal2-popup .swal2-styled::-moz-focus-inner{border:0}.swal2-popup .swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-popup .swal2-image{max-width:100%;margin:1.25em auto}.swal2-popup .swal2-close{position:absolute;top:0;right:0;justify-content:center;width:1.2em;height:1.2em;padding:0;transition:color .1s ease-out;border:none;border-radius:0;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer;overflow:hidden}.swal2-popup .swal2-close:hover{-webkit-transform:none;transform:none;color:#f27474}.swal2-popup>.swal2-checkbox,.swal2-popup>.swal2-file,.swal2-popup>.swal2-input,.swal2-popup>.swal2-radio,.swal2-popup>.swal2-select,.swal2-popup>.swal2-textarea{display:none}.swal2-popup .swal2-content{justify-content:center;margin:0;padding:0;color:#545454;font-size:1.125em;font-weight:300;line-height:normal;z-index:1;word-wrap:break-word}.swal2-popup #swal2-content{text-align:center}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-radio,.swal2-popup .swal2-select,.swal2-popup .swal2-textarea{margin:1em auto}.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-textarea{width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;font-size:1.125em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);box-sizing:border-box}.swal2-popup .swal2-file.swal2-inputerror,.swal2-popup .swal2-input.swal2-inputerror,.swal2-popup .swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-popup .swal2-file:focus,.swal2-popup .swal2-input:focus,.swal2-popup .swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-popup .swal2-file::-webkit-input-placeholder,.swal2-popup .swal2-input::-webkit-input-placeholder,.swal2-popup .swal2-textarea::-webkit-input-placeholder{color:#ccc}.swal2-popup .swal2-file:-ms-input-placeholder,.swal2-popup .swal2-input:-ms-input-placeholder,.swal2-popup .swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::-ms-input-placeholder,.swal2-popup .swal2-input::-ms-input-placeholder,.swal2-popup .swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::placeholder,.swal2-popup .swal2-input::placeholder,.swal2-popup .swal2-textarea::placeholder{color:#ccc}.swal2-popup .swal2-range input{width:80%}.swal2-popup .swal2-range output{width:20%;font-weight:600;text-align:center}.swal2-popup .swal2-range input,.swal2-popup .swal2-range output{height:2.625em;margin:1em auto;padding:0;font-size:1.125em;line-height:2.625em}.swal2-popup .swal2-input{height:2.625em;padding:0 .75em}.swal2-popup .swal2-input[type=number]{max-width:10em}.swal2-popup .swal2-file{font-size:1.125em}.swal2-popup .swal2-textarea{height:6.75em;padding:.75em}.swal2-popup .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;color:#545454;font-size:1.125em}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-radio{align-items:center;justify-content:center}.swal2-popup .swal2-checkbox label,.swal2-popup .swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-popup .swal2-checkbox input,.swal2-popup .swal2-radio input{margin:0 .4em}.swal2-popup .swal2-validationerror{display:none;align-items:center;justify-content:center;padding:.625em;background:#f0f0f0;color:#666;font-size:1em;font-weight:300;overflow:hidden}.swal2-popup .swal2-validationerror::before{display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center;content:'!';zoom:normal}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}.swal2-icon{position:relative;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;line-height:5em;cursor:default;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;zoom:normal}.swal2-icon-text{font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:3.75em 3.75em;transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 3.75em;transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;top:-.25em;left:-.25em;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%;z-index:2;box-sizing:content-box}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;top:.5em;left:1.625em;width:.4375em;height:5.625em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);z-index:1}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;height:.3125em;border-radius:.125em;background-color:#a5dc86;z-index:2}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.875em;width:1.5625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-progresssteps{align-items:center;margin:0 0 1.25em;padding:0;font-weight:600}.swal2-progresssteps li{display:inline-block;position:relative}.swal2-progresssteps .swal2-progresscircle{width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center;z-index:20}.swal2-progresssteps .swal2-progresscircle:first-child{margin-left:0}.swal2-progresssteps .swal2-progresscircle:last-child{margin-right:0}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep{background:#3085d6}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep~.swal2-progresscircle{background:#add8e6}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep~.swal2-progressline{background:#add8e6}.swal2-progresssteps .swal2-progressline{width:2.5em;height:.4em;margin:0 -1px;background:#3085d6;z-index:10}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-show.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-hide.swal2-noanimation{-webkit-animation:none;animation:none}[dir=rtl] .swal2-close{right:auto;left:0}.swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-animate-success-icon .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-animate-error-icon{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-animate-error-icon .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}@-webkit-keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
185 KB
31.9 KB
wp-content/plugins/popup-message-for-contact-form-7/images/jeremy-bishop-160885-unsplash.jpg
deleted
100644 → 0
14.3 KB
wp-content/plugins/popup-message-for-contact-form-7/images/pexels-photo-1191710.jpeg
deleted
100644 → 0
20.3 KB
| 1 | /** | ||
| 2 | * jscolor - JavaScript Color Picker | ||
| 3 | * | ||
| 4 | * @link http://jscolor.com | ||
| 5 | * @license For open source use: GPLv3 | ||
| 6 | * For commercial use: JSColor Commercial License | ||
| 7 | * @author Jan Odvarko | ||
| 8 | * @version 2.0.5 | ||
| 9 | * | ||
| 10 | * See usage examples at http://jscolor.com/examples/ | ||
| 11 | */ | ||
| 12 | |||
| 13 | |||
| 14 | "use strict"; | ||
| 15 | |||
| 16 | |||
| 17 | if (!window.jscolor) { window.jscolor = (function () { | ||
| 18 | |||
| 19 | |||
| 20 | var jsc = { | ||
| 21 | |||
| 22 | |||
| 23 | register : function () { | ||
| 24 | jsc.attachDOMReadyEvent(jsc.init); | ||
| 25 | jsc.attachEvent(document, 'mousedown', jsc.onDocumentMouseDown); | ||
| 26 | jsc.attachEvent(document, 'touchstart', jsc.onDocumentTouchStart); | ||
| 27 | jsc.attachEvent(window, 'resize', jsc.onWindowResize); | ||
| 28 | }, | ||
| 29 | |||
| 30 | |||
| 31 | init : function () { | ||
| 32 | if (jsc.jscolor.lookupClass) { | ||
| 33 | jsc.jscolor.installByClassName(jsc.jscolor.lookupClass); | ||
| 34 | } | ||
| 35 | }, | ||
| 36 | |||
| 37 | |||
| 38 | tryInstallOnElements : function (elms, className) { | ||
| 39 | var matchClass = new RegExp('(^|\\s)(' + className + ')(\\s*(\\{[^}]*\\})|\\s|$)', 'i'); | ||
| 40 | |||
| 41 | for (var i = 0; i < elms.length; i += 1) { | ||
| 42 | if (elms[i].type !== undefined && elms[i].type.toLowerCase() == 'color') { | ||
| 43 | if (jsc.isColorAttrSupported) { | ||
| 44 | // skip inputs of type 'color' if supported by the browser | ||
| 45 | continue; | ||
| 46 | } | ||
| 47 | } | ||
| 48 | var m; | ||
| 49 | if (!elms[i].jscolor && elms[i].className && (m = elms[i].className.match(matchClass))) { | ||
| 50 | var targetElm = elms[i]; | ||
| 51 | var optsStr = null; | ||
| 52 | |||
| 53 | var dataOptions = jsc.getDataAttr(targetElm, 'jscolor'); | ||
| 54 | if (dataOptions !== null) { | ||
| 55 | optsStr = dataOptions; | ||
| 56 | } else if (m[4]) { | ||
| 57 | optsStr = m[4]; | ||
| 58 | } | ||
| 59 | |||
| 60 | var opts = {}; | ||
| 61 | if (optsStr) { | ||
| 62 | try { | ||
| 63 | opts = (new Function ('return (' + optsStr + ')'))(); | ||
| 64 | } catch(eParseError) { | ||
| 65 | jsc.warn('Error parsing jscolor options: ' + eParseError + ':\n' + optsStr); | ||
| 66 | } | ||
| 67 | } | ||
| 68 | targetElm.jscolor = new jsc.jscolor(targetElm, opts); | ||
| 69 | } | ||
| 70 | } | ||
| 71 | }, | ||
| 72 | |||
| 73 | |||
| 74 | isColorAttrSupported : (function () { | ||
| 75 | var elm = document.createElement('input'); | ||
| 76 | if (elm.setAttribute) { | ||
| 77 | elm.setAttribute('type', 'color'); | ||
| 78 | if (elm.type.toLowerCase() == 'color') { | ||
| 79 | return true; | ||
| 80 | } | ||
| 81 | } | ||
| 82 | return false; | ||
| 83 | })(), | ||
| 84 | |||
| 85 | |||
| 86 | isCanvasSupported : (function () { | ||
| 87 | var elm = document.createElement('canvas'); | ||
| 88 | return !!(elm.getContext && elm.getContext('2d')); | ||
| 89 | })(), | ||
| 90 | |||
| 91 | |||
| 92 | fetchElement : function (mixed) { | ||
| 93 | return typeof mixed === 'string' ? document.getElementById(mixed) : mixed; | ||
| 94 | }, | ||
| 95 | |||
| 96 | |||
| 97 | isElementType : function (elm, type) { | ||
| 98 | return elm.nodeName.toLowerCase() === type.toLowerCase(); | ||
| 99 | }, | ||
| 100 | |||
| 101 | |||
| 102 | getDataAttr : function (el, name) { | ||
| 103 | var attrName = 'data-' + name; | ||
| 104 | var attrValue = el.getAttribute(attrName); | ||
| 105 | if (attrValue !== null) { | ||
| 106 | return attrValue; | ||
| 107 | } | ||
| 108 | return null; | ||
| 109 | }, | ||
| 110 | |||
| 111 | |||
| 112 | attachEvent : function (el, evnt, func) { | ||
| 113 | if (el.addEventListener) { | ||
| 114 | el.addEventListener(evnt, func, false); | ||
| 115 | } else if (el.attachEvent) { | ||
| 116 | el.attachEvent('on' + evnt, func); | ||
| 117 | } | ||
| 118 | }, | ||
| 119 | |||
| 120 | |||
| 121 | detachEvent : function (el, evnt, func) { | ||
| 122 | if (el.removeEventListener) { | ||
| 123 | el.removeEventListener(evnt, func, false); | ||
| 124 | } else if (el.detachEvent) { | ||
| 125 | el.detachEvent('on' + evnt, func); | ||
| 126 | } | ||
| 127 | }, | ||
| 128 | |||
| 129 | |||
| 130 | _attachedGroupEvents : {}, | ||
| 131 | |||
| 132 | |||
| 133 | attachGroupEvent : function (groupName, el, evnt, func) { | ||
| 134 | if (!jsc._attachedGroupEvents.hasOwnProperty(groupName)) { | ||
| 135 | jsc._attachedGroupEvents[groupName] = []; | ||
| 136 | } | ||
| 137 | jsc._attachedGroupEvents[groupName].push([el, evnt, func]); | ||
| 138 | jsc.attachEvent(el, evnt, func); | ||
| 139 | }, | ||
| 140 | |||
| 141 | |||
| 142 | detachGroupEvents : function (groupName) { | ||
| 143 | if (jsc._attachedGroupEvents.hasOwnProperty(groupName)) { | ||
| 144 | for (var i = 0; i < jsc._attachedGroupEvents[groupName].length; i += 1) { | ||
| 145 | var evt = jsc._attachedGroupEvents[groupName][i]; | ||
| 146 | jsc.detachEvent(evt[0], evt[1], evt[2]); | ||
| 147 | } | ||
| 148 | delete jsc._attachedGroupEvents[groupName]; | ||
| 149 | } | ||
| 150 | }, | ||
| 151 | |||
| 152 | |||
| 153 | attachDOMReadyEvent : function (func) { | ||
| 154 | var fired = false; | ||
| 155 | var fireOnce = function () { | ||
| 156 | if (!fired) { | ||
| 157 | fired = true; | ||
| 158 | func(); | ||
| 159 | } | ||
| 160 | }; | ||
| 161 | |||
| 162 | if (document.readyState === 'complete') { | ||
| 163 | setTimeout(fireOnce, 1); // async | ||
| 164 | return; | ||
| 165 | } | ||
| 166 | |||
| 167 | if (document.addEventListener) { | ||
| 168 | document.addEventListener('DOMContentLoaded', fireOnce, false); | ||
| 169 | |||
| 170 | // Fallback | ||
| 171 | window.addEventListener('load', fireOnce, false); | ||
| 172 | |||
| 173 | } else if (document.attachEvent) { | ||
| 174 | // IE | ||
| 175 | document.attachEvent('onreadystatechange', function () { | ||
| 176 | if (document.readyState === 'complete') { | ||
| 177 | document.detachEvent('onreadystatechange', arguments.callee); | ||
| 178 | fireOnce(); | ||
| 179 | } | ||
| 180 | }) | ||
| 181 | |||
| 182 | // Fallback | ||
| 183 | window.attachEvent('onload', fireOnce); | ||
| 184 | |||
| 185 | // IE7/8 | ||
| 186 | if (document.documentElement.doScroll && window == window.top) { | ||
| 187 | var tryScroll = function () { | ||
| 188 | if (!document.body) { return; } | ||
| 189 | try { | ||
| 190 | document.documentElement.doScroll('left'); | ||
| 191 | fireOnce(); | ||
| 192 | } catch (e) { | ||
| 193 | setTimeout(tryScroll, 1); | ||
| 194 | } | ||
| 195 | }; | ||
| 196 | tryScroll(); | ||
| 197 | } | ||
| 198 | } | ||
| 199 | }, | ||
| 200 | |||
| 201 | |||
| 202 | warn : function (msg) { | ||
| 203 | if (window.console && window.console.warn) { | ||
| 204 | window.console.warn(msg); | ||
| 205 | } | ||
| 206 | }, | ||
| 207 | |||
| 208 | |||
| 209 | preventDefault : function (e) { | ||
| 210 | if (e.preventDefault) { e.preventDefault(); } | ||
| 211 | e.returnValue = false; | ||
| 212 | }, | ||
| 213 | |||
| 214 | |||
| 215 | captureTarget : function (target) { | ||
| 216 | // IE | ||
| 217 | if (target.setCapture) { | ||
| 218 | jsc._capturedTarget = target; | ||
| 219 | jsc._capturedTarget.setCapture(); | ||
| 220 | } | ||
| 221 | }, | ||
| 222 | |||
| 223 | |||
| 224 | releaseTarget : function () { | ||
| 225 | // IE | ||
| 226 | if (jsc._capturedTarget) { | ||
| 227 | jsc._capturedTarget.releaseCapture(); | ||
| 228 | jsc._capturedTarget = null; | ||
| 229 | } | ||
| 230 | }, | ||
| 231 | |||
| 232 | |||
| 233 | fireEvent : function (el, evnt) { | ||
| 234 | if (!el) { | ||
| 235 | return; | ||
| 236 | } | ||
| 237 | if (document.createEvent) { | ||
| 238 | var ev = document.createEvent('HTMLEvents'); | ||
| 239 | ev.initEvent(evnt, true, true); | ||
| 240 | el.dispatchEvent(ev); | ||
| 241 | } else if (document.createEventObject) { | ||
| 242 | var ev = document.createEventObject(); | ||
| 243 | el.fireEvent('on' + evnt, ev); | ||
| 244 | } else if (el['on' + evnt]) { // alternatively use the traditional event model | ||
| 245 | el['on' + evnt](); | ||
| 246 | } | ||
| 247 | }, | ||
| 248 | |||
| 249 | |||
| 250 | classNameToList : function (className) { | ||
| 251 | return className.replace(/^\s+|\s+$/g, '').split(/\s+/); | ||
| 252 | }, | ||
| 253 | |||
| 254 | |||
| 255 | // The className parameter (str) can only contain a single class name | ||
| 256 | hasClass : function (elm, className) { | ||
| 257 | if (!className) { | ||
| 258 | return false; | ||
| 259 | } | ||
| 260 | return -1 != (' ' + elm.className.replace(/\s+/g, ' ') + ' ').indexOf(' ' + className + ' '); | ||
| 261 | }, | ||
| 262 | |||
| 263 | |||
| 264 | // The className parameter (str) can contain multiple class names separated by whitespace | ||
| 265 | setClass : function (elm, className) { | ||
| 266 | var classList = jsc.classNameToList(className); | ||
| 267 | for (var i = 0; i < classList.length; i += 1) { | ||
| 268 | if (!jsc.hasClass(elm, classList[i])) { | ||
| 269 | elm.className += (elm.className ? ' ' : '') + classList[i]; | ||
| 270 | } | ||
| 271 | } | ||
| 272 | }, | ||
| 273 | |||
| 274 | |||
| 275 | // The className parameter (str) can contain multiple class names separated by whitespace | ||
| 276 | unsetClass : function (elm, className) { | ||
| 277 | var classList = jsc.classNameToList(className); | ||
| 278 | for (var i = 0; i < classList.length; i += 1) { | ||
| 279 | var repl = new RegExp( | ||
| 280 | '^\\s*' + classList[i] + '\\s*|' + | ||
| 281 | '\\s*' + classList[i] + '\\s*$|' + | ||
| 282 | '\\s+' + classList[i] + '(\\s+)', | ||
| 283 | 'g' | ||
| 284 | ); | ||
| 285 | elm.className = elm.className.replace(repl, '$1'); | ||
| 286 | } | ||
| 287 | }, | ||
| 288 | |||
| 289 | |||
| 290 | getStyle : function (elm) { | ||
| 291 | return window.getComputedStyle ? window.getComputedStyle(elm) : elm.currentStyle; | ||
| 292 | }, | ||
| 293 | |||
| 294 | |||
| 295 | setStyle : (function () { | ||
| 296 | var helper = document.createElement('div'); | ||
| 297 | var getSupportedProp = function (names) { | ||
| 298 | for (var i = 0; i < names.length; i += 1) { | ||
| 299 | if (names[i] in helper.style) { | ||
| 300 | return names[i]; | ||
| 301 | } | ||
| 302 | } | ||
| 303 | }; | ||
| 304 | var props = { | ||
| 305 | borderRadius: getSupportedProp(['borderRadius', 'MozBorderRadius', 'webkitBorderRadius']), | ||
| 306 | boxShadow: getSupportedProp(['boxShadow', 'MozBoxShadow', 'webkitBoxShadow']) | ||
| 307 | }; | ||
| 308 | return function (elm, prop, value) { | ||
| 309 | switch (prop.toLowerCase()) { | ||
| 310 | case 'opacity': | ||
| 311 | var alphaOpacity = Math.round(parseFloat(value) * 100); | ||
| 312 | elm.style.opacity = value; | ||
| 313 | elm.style.filter = 'alpha(opacity=' + alphaOpacity + ')'; | ||
| 314 | break; | ||
| 315 | default: | ||
| 316 | elm.style[props[prop]] = value; | ||
| 317 | break; | ||
| 318 | } | ||
| 319 | }; | ||
| 320 | })(), | ||
| 321 | |||
| 322 | |||
| 323 | setBorderRadius : function (elm, value) { | ||
| 324 | jsc.setStyle(elm, 'borderRadius', value || '0'); | ||
| 325 | }, | ||
| 326 | |||
| 327 | |||
| 328 | setBoxShadow : function (elm, value) { | ||
| 329 | jsc.setStyle(elm, 'boxShadow', value || 'none'); | ||
| 330 | }, | ||
| 331 | |||
| 332 | |||
| 333 | getElementPos : function (e, relativeToViewport) { | ||
| 334 | var x=0, y=0; | ||
| 335 | var rect = e.getBoundingClientRect(); | ||
| 336 | x = rect.left; | ||
| 337 | y = rect.top; | ||
| 338 | if (!relativeToViewport) { | ||
| 339 | var viewPos = jsc.getViewPos(); | ||
| 340 | x += viewPos[0]; | ||
| 341 | y += viewPos[1]; | ||
| 342 | } | ||
| 343 | return [x, y]; | ||
| 344 | }, | ||
| 345 | |||
| 346 | |||
| 347 | getElementSize : function (e) { | ||
| 348 | return [e.offsetWidth, e.offsetHeight]; | ||
| 349 | }, | ||
| 350 | |||
| 351 | |||
| 352 | // get pointer's X/Y coordinates relative to viewport | ||
| 353 | getAbsPointerPos : function (e) { | ||
| 354 | if (!e) { e = window.event; } | ||
| 355 | var x = 0, y = 0; | ||
| 356 | if (typeof e.changedTouches !== 'undefined' && e.changedTouches.length) { | ||
| 357 | // touch devices | ||
| 358 | x = e.changedTouches[0].clientX; | ||
| 359 | y = e.changedTouches[0].clientY; | ||
| 360 | } else if (typeof e.clientX === 'number') { | ||
| 361 | x = e.clientX; | ||
| 362 | y = e.clientY; | ||
| 363 | } | ||
| 364 | return { x: x, y: y }; | ||
| 365 | }, | ||
| 366 | |||
| 367 | |||
| 368 | // get pointer's X/Y coordinates relative to target element | ||
| 369 | getRelPointerPos : function (e) { | ||
| 370 | if (!e) { e = window.event; } | ||
| 371 | var target = e.target || e.srcElement; | ||
| 372 | var targetRect = target.getBoundingClientRect(); | ||
| 373 | |||
| 374 | var x = 0, y = 0; | ||
| 375 | |||
| 376 | var clientX = 0, clientY = 0; | ||
| 377 | if (typeof e.changedTouches !== 'undefined' && e.changedTouches.length) { | ||
| 378 | // touch devices | ||
| 379 | clientX = e.changedTouches[0].clientX; | ||
| 380 | clientY = e.changedTouches[0].clientY; | ||
| 381 | } else if (typeof e.clientX === 'number') { | ||
| 382 | clientX = e.clientX; | ||
| 383 | clientY = e.clientY; | ||
| 384 | } | ||
| 385 | |||
| 386 | x = clientX - targetRect.left; | ||
| 387 | y = clientY - targetRect.top; | ||
| 388 | return { x: x, y: y }; | ||
| 389 | }, | ||
| 390 | |||
| 391 | |||
| 392 | getViewPos : function () { | ||
| 393 | var doc = document.documentElement; | ||
| 394 | return [ | ||
| 395 | (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0), | ||
| 396 | (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0) | ||
| 397 | ]; | ||
| 398 | }, | ||
| 399 | |||
| 400 | |||
| 401 | getViewSize : function () { | ||
| 402 | var doc = document.documentElement; | ||
| 403 | return [ | ||
| 404 | (window.innerWidth || doc.clientWidth), | ||
| 405 | (window.innerHeight || doc.clientHeight), | ||
| 406 | ]; | ||
| 407 | }, | ||
| 408 | |||
| 409 | |||
| 410 | redrawPosition : function () { | ||
| 411 | |||
| 412 | if (jsc.picker && jsc.picker.owner) { | ||
| 413 | var thisObj = jsc.picker.owner; | ||
| 414 | |||
| 415 | var tp, vp; | ||
| 416 | |||
| 417 | if (thisObj.fixed) { | ||
| 418 | // Fixed elements are positioned relative to viewport, | ||
| 419 | // therefore we can ignore the scroll offset | ||
| 420 | tp = jsc.getElementPos(thisObj.targetElement, true); // target pos | ||
| 421 | vp = [0, 0]; // view pos | ||
| 422 | } else { | ||
| 423 | tp = jsc.getElementPos(thisObj.targetElement); // target pos | ||
| 424 | vp = jsc.getViewPos(); // view pos | ||
| 425 | } | ||
| 426 | |||
| 427 | var ts = jsc.getElementSize(thisObj.targetElement); // target size | ||
| 428 | var vs = jsc.getViewSize(); // view size | ||
| 429 | var ps = jsc.getPickerOuterDims(thisObj); // picker size | ||
| 430 | var a, b, c; | ||
| 431 | switch (thisObj.position.toLowerCase()) { | ||
| 432 | case 'left': a=1; b=0; c=-1; break; | ||
| 433 | case 'right':a=1; b=0; c=1; break; | ||
| 434 | case 'top': a=0; b=1; c=-1; break; | ||
| 435 | default: a=0; b=1; c=1; break; | ||
| 436 | } | ||
| 437 | var l = (ts[b]+ps[b])/2; | ||
| 438 | |||
| 439 | // compute picker position | ||
| 440 | if (!thisObj.smartPosition) { | ||
| 441 | var pp = [ | ||
| 442 | tp[a], | ||
| 443 | tp[b]+ts[b]-l+l*c | ||
| 444 | ]; | ||
| 445 | } else { | ||
| 446 | var pp = [ | ||
| 447 | -vp[a]+tp[a]+ps[a] > vs[a] ? | ||
| 448 | (-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) : | ||
| 449 | tp[a], | ||
| 450 | -vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ? | ||
| 451 | (-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) : | ||
| 452 | (tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c) | ||
| 453 | ]; | ||
| 454 | } | ||
| 455 | |||
| 456 | var x = pp[a]; | ||
| 457 | var y = pp[b]; | ||
| 458 | var positionValue = thisObj.fixed ? 'fixed' : 'absolute'; | ||
| 459 | var contractShadow = | ||
| 460 | (pp[0] + ps[0] > tp[0] || pp[0] < tp[0] + ts[0]) && | ||
| 461 | (pp[1] + ps[1] < tp[1] + ts[1]); | ||
| 462 | |||
| 463 | jsc._drawPosition(thisObj, x, y, positionValue, contractShadow); | ||
| 464 | } | ||
| 465 | }, | ||
| 466 | |||
| 467 | |||
| 468 | _drawPosition : function (thisObj, x, y, positionValue, contractShadow) { | ||
| 469 | var vShadow = contractShadow ? 0 : thisObj.shadowBlur; // px | ||
| 470 | |||
| 471 | jsc.picker.wrap.style.position = positionValue; | ||
| 472 | jsc.picker.wrap.style.left = x + 'px'; | ||
| 473 | jsc.picker.wrap.style.top = y + 'px'; | ||
| 474 | |||
| 475 | jsc.setBoxShadow( | ||
| 476 | jsc.picker.boxS, | ||
| 477 | thisObj.shadow ? | ||
| 478 | new jsc.BoxShadow(0, vShadow, thisObj.shadowBlur, 0, thisObj.shadowColor) : | ||
| 479 | null); | ||
| 480 | }, | ||
| 481 | |||
| 482 | |||
| 483 | getPickerDims : function (thisObj) { | ||
| 484 | var displaySlider = !!jsc.getSliderComponent(thisObj); | ||
| 485 | var dims = [ | ||
| 486 | 2 * thisObj.insetWidth + 2 * thisObj.padding + thisObj.width + | ||
| 487 | (displaySlider ? 2 * thisObj.insetWidth + jsc.getPadToSliderPadding(thisObj) + thisObj.sliderSize : 0), | ||
| 488 | 2 * thisObj.insetWidth + 2 * thisObj.padding + thisObj.height + | ||
| 489 | (thisObj.closable ? 2 * thisObj.insetWidth + thisObj.padding + thisObj.buttonHeight : 0) | ||
| 490 | ]; | ||
| 491 | return dims; | ||
| 492 | }, | ||
| 493 | |||
| 494 | |||
| 495 | getPickerOuterDims : function (thisObj) { | ||
| 496 | var dims = jsc.getPickerDims(thisObj); | ||
| 497 | return [ | ||
| 498 | dims[0] + 2 * thisObj.borderWidth, | ||
| 499 | dims[1] + 2 * thisObj.borderWidth | ||
| 500 | ]; | ||
| 501 | }, | ||
| 502 | |||
| 503 | |||
| 504 | getPadToSliderPadding : function (thisObj) { | ||
| 505 | return Math.max(thisObj.padding, 1.5 * (2 * thisObj.pointerBorderWidth + thisObj.pointerThickness)); | ||
| 506 | }, | ||
| 507 | |||
| 508 | |||
| 509 | getPadYComponent : function (thisObj) { | ||
| 510 | switch (thisObj.mode.charAt(1).toLowerCase()) { | ||
| 511 | case 'v': return 'v'; break; | ||
| 512 | } | ||
| 513 | return 's'; | ||
| 514 | }, | ||
| 515 | |||
| 516 | |||
| 517 | getSliderComponent : function (thisObj) { | ||
| 518 | if (thisObj.mode.length > 2) { | ||
| 519 | switch (thisObj.mode.charAt(2).toLowerCase()) { | ||
| 520 | case 's': return 's'; break; | ||
| 521 | case 'v': return 'v'; break; | ||
| 522 | } | ||
| 523 | } | ||
| 524 | return null; | ||
| 525 | }, | ||
| 526 | |||
| 527 | |||
| 528 | onDocumentMouseDown : function (e) { | ||
| 529 | if (!e) { e = window.event; } | ||
| 530 | var target = e.target || e.srcElement; | ||
| 531 | |||
| 532 | if (target._jscLinkedInstance) { | ||
| 533 | if (target._jscLinkedInstance.showOnClick) { | ||
| 534 | target._jscLinkedInstance.show(); | ||
| 535 | } | ||
| 536 | } else if (target._jscControlName) { | ||
| 537 | jsc.onControlPointerStart(e, target, target._jscControlName, 'mouse'); | ||
| 538 | } else { | ||
| 539 | // Mouse is outside the picker controls -> hide the color picker! | ||
| 540 | if (jsc.picker && jsc.picker.owner) { | ||
| 541 | jsc.picker.owner.hide(); | ||
| 542 | } | ||
| 543 | } | ||
| 544 | }, | ||
| 545 | |||
| 546 | |||
| 547 | onDocumentTouchStart : function (e) { | ||
| 548 | if (!e) { e = window.event; } | ||
| 549 | var target = e.target || e.srcElement; | ||
| 550 | |||
| 551 | if (target._jscLinkedInstance) { | ||
| 552 | if (target._jscLinkedInstance.showOnClick) { | ||
| 553 | target._jscLinkedInstance.show(); | ||
| 554 | } | ||
| 555 | } else if (target._jscControlName) { | ||
| 556 | jsc.onControlPointerStart(e, target, target._jscControlName, 'touch'); | ||
| 557 | } else { | ||
| 558 | if (jsc.picker && jsc.picker.owner) { | ||
| 559 | jsc.picker.owner.hide(); | ||
| 560 | } | ||
| 561 | } | ||
| 562 | }, | ||
| 563 | |||
| 564 | |||
| 565 | onWindowResize : function (e) { | ||
| 566 | jsc.redrawPosition(); | ||
| 567 | }, | ||
| 568 | |||
| 569 | |||
| 570 | onParentScroll : function (e) { | ||
| 571 | // hide the picker when one of the parent elements is scrolled | ||
| 572 | if (jsc.picker && jsc.picker.owner) { | ||
| 573 | jsc.picker.owner.hide(); | ||
| 574 | } | ||
| 575 | }, | ||
| 576 | |||
| 577 | |||
| 578 | _pointerMoveEvent : { | ||
| 579 | mouse: 'mousemove', | ||
| 580 | touch: 'touchmove' | ||
| 581 | }, | ||
| 582 | _pointerEndEvent : { | ||
| 583 | mouse: 'mouseup', | ||
| 584 | touch: 'touchend' | ||
| 585 | }, | ||
| 586 | |||
| 587 | |||
| 588 | _pointerOrigin : null, | ||
| 589 | _capturedTarget : null, | ||
| 590 | |||
| 591 | |||
| 592 | onControlPointerStart : function (e, target, controlName, pointerType) { | ||
| 593 | var thisObj = target._jscInstance; | ||
| 594 | |||
| 595 | jsc.preventDefault(e); | ||
| 596 | jsc.captureTarget(target); | ||
| 597 | |||
| 598 | var registerDragEvents = function (doc, offset) { | ||
| 599 | jsc.attachGroupEvent('drag', doc, jsc._pointerMoveEvent[pointerType], | ||
| 600 | jsc.onDocumentPointerMove(e, target, controlName, pointerType, offset)); | ||
| 601 | jsc.attachGroupEvent('drag', doc, jsc._pointerEndEvent[pointerType], | ||
| 602 | jsc.onDocumentPointerEnd(e, target, controlName, pointerType)); | ||
| 603 | }; | ||
| 604 | |||
| 605 | registerDragEvents(document, [0, 0]); | ||
| 606 | |||
| 607 | if (window.parent && window.frameElement) { | ||
| 608 | var rect = window.frameElement.getBoundingClientRect(); | ||
| 609 | var ofs = [-rect.left, -rect.top]; | ||
| 610 | registerDragEvents(window.parent.window.document, ofs); | ||
| 611 | } | ||
| 612 | |||
| 613 | var abs = jsc.getAbsPointerPos(e); | ||
| 614 | var rel = jsc.getRelPointerPos(e); | ||
| 615 | jsc._pointerOrigin = { | ||
| 616 | x: abs.x - rel.x, | ||
| 617 | y: abs.y - rel.y | ||
| 618 | }; | ||
| 619 | |||
| 620 | switch (controlName) { | ||
| 621 | case 'pad': | ||
| 622 | // if the slider is at the bottom, move it up | ||
| 623 | switch (jsc.getSliderComponent(thisObj)) { | ||
| 624 | case 's': if (thisObj.hsv[1] === 0) { thisObj.fromHSV(null, 100, null); }; break; | ||
| 625 | case 'v': if (thisObj.hsv[2] === 0) { thisObj.fromHSV(null, null, 100); }; break; | ||
| 626 | } | ||
| 627 | jsc.setPad(thisObj, e, 0, 0); | ||
| 628 | break; | ||
| 629 | |||
| 630 | case 'sld': | ||
| 631 | jsc.setSld(thisObj, e, 0); | ||
| 632 | break; | ||
| 633 | } | ||
| 634 | |||
| 635 | jsc.dispatchFineChange(thisObj); | ||
| 636 | }, | ||
| 637 | |||
| 638 | |||
| 639 | onDocumentPointerMove : function (e, target, controlName, pointerType, offset) { | ||
| 640 | return function (e) { | ||
| 641 | var thisObj = target._jscInstance; | ||
| 642 | switch (controlName) { | ||
| 643 | case 'pad': | ||
| 644 | if (!e) { e = window.event; } | ||
| 645 | jsc.setPad(thisObj, e, offset[0], offset[1]); | ||
| 646 | jsc.dispatchFineChange(thisObj); | ||
| 647 | break; | ||
| 648 | |||
| 649 | case 'sld': | ||
| 650 | if (!e) { e = window.event; } | ||
| 651 | jsc.setSld(thisObj, e, offset[1]); | ||
| 652 | jsc.dispatchFineChange(thisObj); | ||
| 653 | break; | ||
| 654 | } | ||
| 655 | } | ||
| 656 | }, | ||
| 657 | |||
| 658 | |||
| 659 | onDocumentPointerEnd : function (e, target, controlName, pointerType) { | ||
| 660 | return function (e) { | ||
| 661 | var thisObj = target._jscInstance; | ||
| 662 | jsc.detachGroupEvents('drag'); | ||
| 663 | jsc.releaseTarget(); | ||
| 664 | // Always dispatch changes after detaching outstanding mouse handlers, | ||
| 665 | // in case some user interaction will occur in user's onchange callback | ||
| 666 | // that would intrude with current mouse events | ||
| 667 | jsc.dispatchChange(thisObj); | ||
| 668 | }; | ||
| 669 | }, | ||
| 670 | |||
| 671 | |||
| 672 | dispatchChange : function (thisObj) { | ||
| 673 | if (thisObj.valueElement) { | ||
| 674 | if (jsc.isElementType(thisObj.valueElement, 'input')) { | ||
| 675 | jsc.fireEvent(thisObj.valueElement, 'change'); | ||
| 676 | } | ||
| 677 | } | ||
| 678 | }, | ||
| 679 | |||
| 680 | |||
| 681 | dispatchFineChange : function (thisObj) { | ||
| 682 | if (thisObj.onFineChange) { | ||
| 683 | var callback; | ||
| 684 | if (typeof thisObj.onFineChange === 'string') { | ||
| 685 | callback = new Function (thisObj.onFineChange); | ||
| 686 | } else { | ||
| 687 | callback = thisObj.onFineChange; | ||
| 688 | } | ||
| 689 | callback.call(thisObj); | ||
| 690 | } | ||
| 691 | }, | ||
| 692 | |||
| 693 | |||
| 694 | setPad : function (thisObj, e, ofsX, ofsY) { | ||
| 695 | var pointerAbs = jsc.getAbsPointerPos(e); | ||
| 696 | var x = ofsX + pointerAbs.x - jsc._pointerOrigin.x - thisObj.padding - thisObj.insetWidth; | ||
| 697 | var y = ofsY + pointerAbs.y - jsc._pointerOrigin.y - thisObj.padding - thisObj.insetWidth; | ||
| 698 | |||
| 699 | var xVal = x * (360 / (thisObj.width - 1)); | ||
| 700 | var yVal = 100 - (y * (100 / (thisObj.height - 1))); | ||
| 701 | |||
| 702 | switch (jsc.getPadYComponent(thisObj)) { | ||
| 703 | case 's': thisObj.fromHSV(xVal, yVal, null, jsc.leaveSld); break; | ||
| 704 | case 'v': thisObj.fromHSV(xVal, null, yVal, jsc.leaveSld); break; | ||
| 705 | } | ||
| 706 | }, | ||
| 707 | |||
| 708 | |||
| 709 | setSld : function (thisObj, e, ofsY) { | ||
| 710 | var pointerAbs = jsc.getAbsPointerPos(e); | ||
| 711 | var y = ofsY + pointerAbs.y - jsc._pointerOrigin.y - thisObj.padding - thisObj.insetWidth; | ||
| 712 | |||
| 713 | var yVal = 100 - (y * (100 / (thisObj.height - 1))); | ||
| 714 | |||
| 715 | switch (jsc.getSliderComponent(thisObj)) { | ||
| 716 | case 's': thisObj.fromHSV(null, yVal, null, jsc.leavePad); break; | ||
| 717 | case 'v': thisObj.fromHSV(null, null, yVal, jsc.leavePad); break; | ||
| 718 | } | ||
| 719 | }, | ||
| 720 | |||
| 721 | |||
| 722 | _vmlNS : 'jsc_vml_', | ||
| 723 | _vmlCSS : 'jsc_vml_css_', | ||
| 724 | _vmlReady : false, | ||
| 725 | |||
| 726 | |||
| 727 | initVML : function () { | ||
| 728 | if (!jsc._vmlReady) { | ||
| 729 | // init VML namespace | ||
| 730 | var doc = document; | ||
| 731 | if (!doc.namespaces[jsc._vmlNS]) { | ||
| 732 | doc.namespaces.add(jsc._vmlNS, 'urn:schemas-microsoft-com:vml'); | ||
| 733 | } | ||
| 734 | if (!doc.styleSheets[jsc._vmlCSS]) { | ||
| 735 | var tags = ['shape', 'shapetype', 'group', 'background', 'path', 'formulas', 'handles', 'fill', 'stroke', 'shadow', 'textbox', 'textpath', 'imagedata', 'line', 'polyline', 'curve', 'rect', 'roundrect', 'oval', 'arc', 'image']; | ||
| 736 | var ss = doc.createStyleSheet(); | ||
| 737 | ss.owningElement.id = jsc._vmlCSS; | ||
| 738 | for (var i = 0; i < tags.length; i += 1) { | ||
| 739 | ss.addRule(jsc._vmlNS + '\\:' + tags[i], 'behavior:url(#default#VML);'); | ||
| 740 | } | ||
| 741 | } | ||
| 742 | jsc._vmlReady = true; | ||
| 743 | } | ||
| 744 | }, | ||
| 745 | |||
| 746 | |||
| 747 | createPalette : function () { | ||
| 748 | |||
| 749 | var paletteObj = { | ||
| 750 | elm: null, | ||
| 751 | draw: null | ||
| 752 | }; | ||
| 753 | |||
| 754 | if (jsc.isCanvasSupported) { | ||
| 755 | // Canvas implementation for modern browsers | ||
| 756 | |||
| 757 | var canvas = document.createElement('canvas'); | ||
| 758 | var ctx = canvas.getContext('2d'); | ||
| 759 | |||
| 760 | var drawFunc = function (width, height, type) { | ||
| 761 | canvas.width = width; | ||
| 762 | canvas.height = height; | ||
| 763 | |||
| 764 | ctx.clearRect(0, 0, canvas.width, canvas.height); | ||
| 765 | |||
| 766 | var hGrad = ctx.createLinearGradient(0, 0, canvas.width, 0); | ||
| 767 | hGrad.addColorStop(0 / 6, '#F00'); | ||
| 768 | hGrad.addColorStop(1 / 6, '#FF0'); | ||
| 769 | hGrad.addColorStop(2 / 6, '#0F0'); | ||
| 770 | hGrad.addColorStop(3 / 6, '#0FF'); | ||
| 771 | hGrad.addColorStop(4 / 6, '#00F'); | ||
| 772 | hGrad.addColorStop(5 / 6, '#F0F'); | ||
| 773 | hGrad.addColorStop(6 / 6, '#F00'); | ||
| 774 | |||
| 775 | ctx.fillStyle = hGrad; | ||
| 776 | ctx.fillRect(0, 0, canvas.width, canvas.height); | ||
| 777 | |||
| 778 | var vGrad = ctx.createLinearGradient(0, 0, 0, canvas.height); | ||
| 779 | switch (type.toLowerCase()) { | ||
| 780 | case 's': | ||
| 781 | vGrad.addColorStop(0, 'rgba(255,255,255,0)'); | ||
| 782 | vGrad.addColorStop(1, 'rgba(255,255,255,1)'); | ||
| 783 | break; | ||
| 784 | case 'v': | ||
| 785 | vGrad.addColorStop(0, 'rgba(0,0,0,0)'); | ||
| 786 | vGrad.addColorStop(1, 'rgba(0,0,0,1)'); | ||
| 787 | break; | ||
| 788 | } | ||
| 789 | ctx.fillStyle = vGrad; | ||
| 790 | ctx.fillRect(0, 0, canvas.width, canvas.height); | ||
| 791 | }; | ||
| 792 | |||
| 793 | paletteObj.elm = canvas; | ||
| 794 | paletteObj.draw = drawFunc; | ||
| 795 | |||
| 796 | } else { | ||
| 797 | // VML fallback for IE 7 and 8 | ||
| 798 | |||
| 799 | jsc.initVML(); | ||
| 800 | |||
| 801 | var vmlContainer = document.createElement('div'); | ||
| 802 | vmlContainer.style.position = 'relative'; | ||
| 803 | vmlContainer.style.overflow = 'hidden'; | ||
| 804 | |||
| 805 | var hGrad = document.createElement(jsc._vmlNS + ':fill'); | ||
| 806 | hGrad.type = 'gradient'; | ||
| 807 | hGrad.method = 'linear'; | ||
| 808 | hGrad.angle = '90'; | ||
| 809 | hGrad.colors = '16.67% #F0F, 33.33% #00F, 50% #0FF, 66.67% #0F0, 83.33% #FF0' | ||
| 810 | |||
| 811 | var hRect = document.createElement(jsc._vmlNS + ':rect'); | ||
| 812 | hRect.style.position = 'absolute'; | ||
| 813 | hRect.style.left = -1 + 'px'; | ||
| 814 | hRect.style.top = -1 + 'px'; | ||
| 815 | hRect.stroked = false; | ||
| 816 | hRect.appendChild(hGrad); | ||
| 817 | vmlContainer.appendChild(hRect); | ||
| 818 | |||
| 819 | var vGrad = document.createElement(jsc._vmlNS + ':fill'); | ||
| 820 | vGrad.type = 'gradient'; | ||
| 821 | vGrad.method = 'linear'; | ||
| 822 | vGrad.angle = '180'; | ||
| 823 | vGrad.opacity = '0'; | ||
| 824 | |||
| 825 | var vRect = document.createElement(jsc._vmlNS + ':rect'); | ||
| 826 | vRect.style.position = 'absolute'; | ||
| 827 | vRect.style.left = -1 + 'px'; | ||
| 828 | vRect.style.top = -1 + 'px'; | ||
| 829 | vRect.stroked = false; | ||
| 830 | vRect.appendChild(vGrad); | ||
| 831 | vmlContainer.appendChild(vRect); | ||
| 832 | |||
| 833 | var drawFunc = function (width, height, type) { | ||
| 834 | vmlContainer.style.width = width + 'px'; | ||
| 835 | vmlContainer.style.height = height + 'px'; | ||
| 836 | |||
| 837 | hRect.style.width = | ||
| 838 | vRect.style.width = | ||
| 839 | (width + 1) + 'px'; | ||
| 840 | hRect.style.height = | ||
| 841 | vRect.style.height = | ||
| 842 | (height + 1) + 'px'; | ||
| 843 | |||
| 844 | // Colors must be specified during every redraw, otherwise IE won't display | ||
| 845 | // a full gradient during a subsequential redraw | ||
| 846 | hGrad.color = '#F00'; | ||
| 847 | hGrad.color2 = '#F00'; | ||
| 848 | |||
| 849 | switch (type.toLowerCase()) { | ||
| 850 | case 's': | ||
| 851 | vGrad.color = vGrad.color2 = '#FFF'; | ||
| 852 | break; | ||
| 853 | case 'v': | ||
| 854 | vGrad.color = vGrad.color2 = '#000'; | ||
| 855 | break; | ||
| 856 | } | ||
| 857 | }; | ||
| 858 | |||
| 859 | paletteObj.elm = vmlContainer; | ||
| 860 | paletteObj.draw = drawFunc; | ||
| 861 | } | ||
| 862 | |||
| 863 | return paletteObj; | ||
| 864 | }, | ||
| 865 | |||
| 866 | |||
| 867 | createSliderGradient : function () { | ||
| 868 | |||
| 869 | var sliderObj = { | ||
| 870 | elm: null, | ||
| 871 | draw: null | ||
| 872 | }; | ||
| 873 | |||
| 874 | if (jsc.isCanvasSupported) { | ||
| 875 | // Canvas implementation for modern browsers | ||
| 876 | |||
| 877 | var canvas = document.createElement('canvas'); | ||
| 878 | var ctx = canvas.getContext('2d'); | ||
| 879 | |||
| 880 | var drawFunc = function (width, height, color1, color2) { | ||
| 881 | canvas.width = width; | ||
| 882 | canvas.height = height; | ||
| 883 | |||
| 884 | ctx.clearRect(0, 0, canvas.width, canvas.height); | ||
| 885 | |||
| 886 | var grad = ctx.createLinearGradient(0, 0, 0, canvas.height); | ||
| 887 | grad.addColorStop(0, color1); | ||
| 888 | grad.addColorStop(1, color2); | ||
| 889 | |||
| 890 | ctx.fillStyle = grad; | ||
| 891 | ctx.fillRect(0, 0, canvas.width, canvas.height); | ||
| 892 | }; | ||
| 893 | |||
| 894 | sliderObj.elm = canvas; | ||
| 895 | sliderObj.draw = drawFunc; | ||
| 896 | |||
| 897 | } else { | ||
| 898 | // VML fallback for IE 7 and 8 | ||
| 899 | |||
| 900 | jsc.initVML(); | ||
| 901 | |||
| 902 | var vmlContainer = document.createElement('div'); | ||
| 903 | vmlContainer.style.position = 'relative'; | ||
| 904 | vmlContainer.style.overflow = 'hidden'; | ||
| 905 | |||
| 906 | var grad = document.createElement(jsc._vmlNS + ':fill'); | ||
| 907 | grad.type = 'gradient'; | ||
| 908 | grad.method = 'linear'; | ||
| 909 | grad.angle = '180'; | ||
| 910 | |||
| 911 | var rect = document.createElement(jsc._vmlNS + ':rect'); | ||
| 912 | rect.style.position = 'absolute'; | ||
| 913 | rect.style.left = -1 + 'px'; | ||
| 914 | rect.style.top = -1 + 'px'; | ||
| 915 | rect.stroked = false; | ||
| 916 | rect.appendChild(grad); | ||
| 917 | vmlContainer.appendChild(rect); | ||
| 918 | |||
| 919 | var drawFunc = function (width, height, color1, color2) { | ||
| 920 | vmlContainer.style.width = width + 'px'; | ||
| 921 | vmlContainer.style.height = height + 'px'; | ||
| 922 | |||
| 923 | rect.style.width = (width + 1) + 'px'; | ||
| 924 | rect.style.height = (height + 1) + 'px'; | ||
| 925 | |||
| 926 | grad.color = color1; | ||
| 927 | grad.color2 = color2; | ||
| 928 | }; | ||
| 929 | |||
| 930 | sliderObj.elm = vmlContainer; | ||
| 931 | sliderObj.draw = drawFunc; | ||
| 932 | } | ||
| 933 | |||
| 934 | return sliderObj; | ||
| 935 | }, | ||
| 936 | |||
| 937 | |||
| 938 | leaveValue : 1<<0, | ||
| 939 | leaveStyle : 1<<1, | ||
| 940 | leavePad : 1<<2, | ||
| 941 | leaveSld : 1<<3, | ||
| 942 | |||
| 943 | |||
| 944 | BoxShadow : (function () { | ||
| 945 | var BoxShadow = function (hShadow, vShadow, blur, spread, color, inset) { | ||
| 946 | this.hShadow = hShadow; | ||
| 947 | this.vShadow = vShadow; | ||
| 948 | this.blur = blur; | ||
| 949 | this.spread = spread; | ||
| 950 | this.color = color; | ||
| 951 | this.inset = !!inset; | ||
| 952 | }; | ||
| 953 | |||
| 954 | BoxShadow.prototype.toString = function () { | ||
| 955 | var vals = [ | ||
| 956 | Math.round(this.hShadow) + 'px', | ||
| 957 | Math.round(this.vShadow) + 'px', | ||
| 958 | Math.round(this.blur) + 'px', | ||
| 959 | Math.round(this.spread) + 'px', | ||
| 960 | this.color | ||
| 961 | ]; | ||
| 962 | if (this.inset) { | ||
| 963 | vals.push('inset'); | ||
| 964 | } | ||
| 965 | return vals.join(' '); | ||
| 966 | }; | ||
| 967 | |||
| 968 | return BoxShadow; | ||
| 969 | })(), | ||
| 970 | |||
| 971 | |||
| 972 | // | ||
| 973 | // Usage: | ||
| 974 | // var myColor = new jscolor(<targetElement> [, <options>]) | ||
| 975 | // | ||
| 976 | |||
| 977 | jscolor : function (targetElement, options) { | ||
| 978 | |||
| 979 | // General options | ||
| 980 | // | ||
| 981 | this.value = null; // initial HEX color. To change it later, use methods fromString(), fromHSV() and fromRGB() | ||
| 982 | this.valueElement = targetElement; // element that will be used to display and input the color code | ||
| 983 | this.styleElement = targetElement; // element that will preview the picked color using CSS backgroundColor | ||
| 984 | this.required = true; // whether the associated text <input> can be left empty | ||
| 985 | this.refine = true; // whether to refine the entered color code (e.g. uppercase it and remove whitespace) | ||
| 986 | this.hash = false; // whether to prefix the HEX color code with # symbol | ||
| 987 | this.uppercase = true; // whether to show the color code in upper case | ||
| 988 | this.onFineChange = null; // called instantly every time the color changes (value can be either a function or a string with javascript code) | ||
| 989 | this.activeClass = 'jscolor-active'; // class to be set to the target element when a picker window is open on it | ||
| 990 | this.overwriteImportant = false; // whether to overwrite colors of styleElement using !important | ||
| 991 | this.minS = 0; // min allowed saturation (0 - 100) | ||
| 992 | this.maxS = 100; // max allowed saturation (0 - 100) | ||
| 993 | this.minV = 0; // min allowed value (brightness) (0 - 100) | ||
| 994 | this.maxV = 100; // max allowed value (brightness) (0 - 100) | ||
| 995 | |||
| 996 | // Accessing the picked color | ||
| 997 | // | ||
| 998 | this.hsv = [0, 0, 100]; // read-only [0-360, 0-100, 0-100] | ||
| 999 | this.rgb = [255, 255, 255]; // read-only [0-255, 0-255, 0-255] | ||
| 1000 | |||
| 1001 | // Color Picker options | ||
| 1002 | // | ||
| 1003 | this.width = 181; // width of color palette (in px) | ||
| 1004 | this.height = 101; // height of color palette (in px) | ||
| 1005 | this.showOnClick = true; // whether to display the color picker when user clicks on its target element | ||
| 1006 | this.mode = 'HSV'; // HSV | HVS | HS | HV - layout of the color picker controls | ||
| 1007 | this.position = 'bottom'; // left | right | top | bottom - position relative to the target element | ||
| 1008 | this.smartPosition = true; // automatically change picker position when there is not enough space for it | ||
| 1009 | this.sliderSize = 16; // px | ||
| 1010 | this.crossSize = 8; // px | ||
| 1011 | this.closable = false; // whether to display the Close button | ||
| 1012 | this.closeText = 'Close'; | ||
| 1013 | this.buttonColor = '#000000'; // CSS color | ||
| 1014 | this.buttonHeight = 18; // px | ||
| 1015 | this.padding = 12; // px | ||
| 1016 | this.backgroundColor = '#FFFFFF'; // CSS color | ||
| 1017 | this.borderWidth = 1; // px | ||
| 1018 | this.borderColor = '#BBBBBB'; // CSS color | ||
| 1019 | this.borderRadius = 8; // px | ||
| 1020 | this.insetWidth = 1; // px | ||
| 1021 | this.insetColor = '#BBBBBB'; // CSS color | ||
| 1022 | this.shadow = true; // whether to display shadow | ||
| 1023 | this.shadowBlur = 15; // px | ||
| 1024 | this.shadowColor = 'rgba(0,0,0,0.2)'; // CSS color | ||
| 1025 | this.pointerColor = '#4C4C4C'; // px | ||
| 1026 | this.pointerBorderColor = '#FFFFFF'; // px | ||
| 1027 | this.pointerBorderWidth = 1; // px | ||
| 1028 | this.pointerThickness = 2; // px | ||
| 1029 | this.zIndex = 1000; | ||
| 1030 | this.container = null; // where to append the color picker (BODY element by default) | ||
| 1031 | |||
| 1032 | |||
| 1033 | for (var opt in options) { | ||
| 1034 | if (options.hasOwnProperty(opt)) { | ||
| 1035 | this[opt] = options[opt]; | ||
| 1036 | } | ||
| 1037 | } | ||
| 1038 | |||
| 1039 | |||
| 1040 | this.hide = function () { | ||
| 1041 | if (isPickerOwner()) { | ||
| 1042 | detachPicker(); | ||
| 1043 | } | ||
| 1044 | }; | ||
| 1045 | |||
| 1046 | |||
| 1047 | this.show = function () { | ||
| 1048 | drawPicker(); | ||
| 1049 | }; | ||
| 1050 | |||
| 1051 | |||
| 1052 | this.redraw = function () { | ||
| 1053 | if (isPickerOwner()) { | ||
| 1054 | drawPicker(); | ||
| 1055 | } | ||
| 1056 | }; | ||
| 1057 | |||
| 1058 | |||
| 1059 | this.importColor = function () { | ||
| 1060 | if (!this.valueElement) { | ||
| 1061 | this.exportColor(); | ||
| 1062 | } else { | ||
| 1063 | if (jsc.isElementType(this.valueElement, 'input')) { | ||
| 1064 | if (!this.refine) { | ||
| 1065 | if (!this.fromString(this.valueElement.value, jsc.leaveValue)) { | ||
| 1066 | if (this.styleElement) { | ||
| 1067 | this.styleElement.style.backgroundImage = this.styleElement._jscOrigStyle.backgroundImage; | ||
| 1068 | this.styleElement.style.backgroundColor = this.styleElement._jscOrigStyle.backgroundColor; | ||
| 1069 | this.styleElement.style.color = this.styleElement._jscOrigStyle.color; | ||
| 1070 | } | ||
| 1071 | this.exportColor(jsc.leaveValue | jsc.leaveStyle); | ||
| 1072 | } | ||
| 1073 | } else if (!this.required && /^\s*$/.test(this.valueElement.value)) { | ||
| 1074 | this.valueElement.value = ''; | ||
| 1075 | if (this.styleElement) { | ||
| 1076 | this.styleElement.style.backgroundImage = this.styleElement._jscOrigStyle.backgroundImage; | ||
| 1077 | this.styleElement.style.backgroundColor = this.styleElement._jscOrigStyle.backgroundColor; | ||
| 1078 | this.styleElement.style.color = this.styleElement._jscOrigStyle.color; | ||
| 1079 | } | ||
| 1080 | this.exportColor(jsc.leaveValue | jsc.leaveStyle); | ||
| 1081 | |||
| 1082 | } else if (this.fromString(this.valueElement.value)) { | ||
| 1083 | // managed to import color successfully from the value -> OK, don't do anything | ||
| 1084 | } else { | ||
| 1085 | this.exportColor(); | ||
| 1086 | } | ||
| 1087 | } else { | ||
| 1088 | // not an input element -> doesn't have any value | ||
| 1089 | this.exportColor(); | ||
| 1090 | } | ||
| 1091 | } | ||
| 1092 | }; | ||
| 1093 | |||
| 1094 | |||
| 1095 | this.exportColor = function (flags) { | ||
| 1096 | if (!(flags & jsc.leaveValue) && this.valueElement) { | ||
| 1097 | var value = this.toString(); | ||
| 1098 | if (this.uppercase) { value = value.toUpperCase(); } | ||
| 1099 | if (this.hash) { value = '#' + value; } | ||
| 1100 | |||
| 1101 | if (jsc.isElementType(this.valueElement, 'input')) { | ||
| 1102 | this.valueElement.value = value; | ||
| 1103 | } else { | ||
| 1104 | this.valueElement.innerHTML = value; | ||
| 1105 | } | ||
| 1106 | } | ||
| 1107 | if (!(flags & jsc.leaveStyle)) { | ||
| 1108 | if (this.styleElement) { | ||
| 1109 | var bgColor = '#' + this.toString(); | ||
| 1110 | var fgColor = this.isLight() ? '#000' : '#FFF'; | ||
| 1111 | |||
| 1112 | this.styleElement.style.backgroundImage = 'none'; | ||
| 1113 | this.styleElement.style.backgroundColor = bgColor; | ||
| 1114 | this.styleElement.style.color = fgColor; | ||
| 1115 | |||
| 1116 | if (this.overwriteImportant) { | ||
| 1117 | this.styleElement.setAttribute('style', | ||
| 1118 | 'background: ' + bgColor + ' !important; ' + | ||
| 1119 | 'color: ' + fgColor + ' !important;' | ||
| 1120 | ); | ||
| 1121 | } | ||
| 1122 | } | ||
| 1123 | } | ||
| 1124 | if (!(flags & jsc.leavePad) && isPickerOwner()) { | ||
| 1125 | redrawPad(); | ||
| 1126 | } | ||
| 1127 | if (!(flags & jsc.leaveSld) && isPickerOwner()) { | ||
| 1128 | redrawSld(); | ||
| 1129 | } | ||
| 1130 | }; | ||
| 1131 | |||
| 1132 | |||
| 1133 | // h: 0-360 | ||
| 1134 | // s: 0-100 | ||
| 1135 | // v: 0-100 | ||
| 1136 | // | ||
| 1137 | this.fromHSV = function (h, s, v, flags) { // null = don't change | ||
| 1138 | if (h !== null) { | ||
| 1139 | if (isNaN(h)) { return false; } | ||
| 1140 | h = Math.max(0, Math.min(360, h)); | ||
| 1141 | } | ||
| 1142 | if (s !== null) { | ||
| 1143 | if (isNaN(s)) { return false; } | ||
| 1144 | s = Math.max(0, Math.min(100, this.maxS, s), this.minS); | ||
| 1145 | } | ||
| 1146 | if (v !== null) { | ||
| 1147 | if (isNaN(v)) { return false; } | ||
| 1148 | v = Math.max(0, Math.min(100, this.maxV, v), this.minV); | ||
| 1149 | } | ||
| 1150 | |||
| 1151 | this.rgb = HSV_RGB( | ||
| 1152 | h===null ? this.hsv[0] : (this.hsv[0]=h), | ||
| 1153 | s===null ? this.hsv[1] : (this.hsv[1]=s), | ||
| 1154 | v===null ? this.hsv[2] : (this.hsv[2]=v) | ||
| 1155 | ); | ||
| 1156 | |||
| 1157 | this.exportColor(flags); | ||
| 1158 | }; | ||
| 1159 | |||
| 1160 | |||
| 1161 | // r: 0-255 | ||
| 1162 | // g: 0-255 | ||
| 1163 | // b: 0-255 | ||
| 1164 | // | ||
| 1165 | this.fromRGB = function (r, g, b, flags) { // null = don't change | ||
| 1166 | if (r !== null) { | ||
| 1167 | if (isNaN(r)) { return false; } | ||
| 1168 | r = Math.max(0, Math.min(255, r)); | ||
| 1169 | } | ||
| 1170 | if (g !== null) { | ||
| 1171 | if (isNaN(g)) { return false; } | ||
| 1172 | g = Math.max(0, Math.min(255, g)); | ||
| 1173 | } | ||
| 1174 | if (b !== null) { | ||
| 1175 | if (isNaN(b)) { return false; } | ||
| 1176 | b = Math.max(0, Math.min(255, b)); | ||
| 1177 | } | ||
| 1178 | |||
| 1179 | var hsv = RGB_HSV( | ||
| 1180 | r===null ? this.rgb[0] : r, | ||
| 1181 | g===null ? this.rgb[1] : g, | ||
| 1182 | b===null ? this.rgb[2] : b | ||
| 1183 | ); | ||
| 1184 | if (hsv[0] !== null) { | ||
| 1185 | this.hsv[0] = Math.max(0, Math.min(360, hsv[0])); | ||
| 1186 | } | ||
| 1187 | if (hsv[2] !== 0) { | ||
| 1188 | this.hsv[1] = hsv[1]===null ? null : Math.max(0, this.minS, Math.min(100, this.maxS, hsv[1])); | ||
| 1189 | } | ||
| 1190 | this.hsv[2] = hsv[2]===null ? null : Math.max(0, this.minV, Math.min(100, this.maxV, hsv[2])); | ||
| 1191 | |||
| 1192 | // update RGB according to final HSV, as some values might be trimmed | ||
| 1193 | var rgb = HSV_RGB(this.hsv[0], this.hsv[1], this.hsv[2]); | ||
| 1194 | this.rgb[0] = rgb[0]; | ||
| 1195 | this.rgb[1] = rgb[1]; | ||
| 1196 | this.rgb[2] = rgb[2]; | ||
| 1197 | |||
| 1198 | this.exportColor(flags); | ||
| 1199 | }; | ||
| 1200 | |||
| 1201 | |||
| 1202 | this.fromString = function (str, flags) { | ||
| 1203 | var m; | ||
| 1204 | if (m = str.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i)) { | ||
| 1205 | // HEX notation | ||
| 1206 | // | ||
| 1207 | |||
| 1208 | if (m[1].length === 6) { | ||
| 1209 | // 6-char notation | ||
| 1210 | this.fromRGB( | ||
| 1211 | parseInt(m[1].substr(0,2),16), | ||
| 1212 | parseInt(m[1].substr(2,2),16), | ||
| 1213 | parseInt(m[1].substr(4,2),16), | ||
| 1214 | flags | ||
| 1215 | ); | ||
| 1216 | } else { | ||
| 1217 | // 3-char notation | ||
| 1218 | this.fromRGB( | ||
| 1219 | parseInt(m[1].charAt(0) + m[1].charAt(0),16), | ||
| 1220 | parseInt(m[1].charAt(1) + m[1].charAt(1),16), | ||
| 1221 | parseInt(m[1].charAt(2) + m[1].charAt(2),16), | ||
| 1222 | flags | ||
| 1223 | ); | ||
| 1224 | } | ||
| 1225 | return true; | ||
| 1226 | |||
| 1227 | } else if (m = str.match(/^\W*rgba?\(([^)]*)\)\W*$/i)) { | ||
| 1228 | var params = m[1].split(','); | ||
| 1229 | var re = /^\s*(\d*)(\.\d+)?\s*$/; | ||
| 1230 | var mR, mG, mB; | ||
| 1231 | if ( | ||
| 1232 | params.length >= 3 && | ||
| 1233 | (mR = params[0].match(re)) && | ||
| 1234 | (mG = params[1].match(re)) && | ||
| 1235 | (mB = params[2].match(re)) | ||
| 1236 | ) { | ||
| 1237 | var r = parseFloat((mR[1] || '0') + (mR[2] || '')); | ||
| 1238 | var g = parseFloat((mG[1] || '0') + (mG[2] || '')); | ||
| 1239 | var b = parseFloat((mB[1] || '0') + (mB[2] || '')); | ||
| 1240 | this.fromRGB(r, g, b, flags); | ||
| 1241 | return true; | ||
| 1242 | } | ||
| 1243 | } | ||
| 1244 | return false; | ||
| 1245 | }; | ||
| 1246 | |||
| 1247 | |||
| 1248 | this.toString = function () { | ||
| 1249 | return ( | ||
| 1250 | (0x100 | Math.round(this.rgb[0])).toString(16).substr(1) + | ||
| 1251 | (0x100 | Math.round(this.rgb[1])).toString(16).substr(1) + | ||
| 1252 | (0x100 | Math.round(this.rgb[2])).toString(16).substr(1) | ||
| 1253 | ); | ||
| 1254 | }; | ||
| 1255 | |||
| 1256 | |||
| 1257 | this.toHEXString = function () { | ||
| 1258 | return '#' + this.toString().toUpperCase(); | ||
| 1259 | }; | ||
| 1260 | |||
| 1261 | |||
| 1262 | this.toRGBString = function () { | ||
| 1263 | return ('rgb(' + | ||
| 1264 | Math.round(this.rgb[0]) + ',' + | ||
| 1265 | Math.round(this.rgb[1]) + ',' + | ||
| 1266 | Math.round(this.rgb[2]) + ')' | ||
| 1267 | ); | ||
| 1268 | }; | ||
| 1269 | |||
| 1270 | |||
| 1271 | this.isLight = function () { | ||
| 1272 | return ( | ||
| 1273 | 0.213 * this.rgb[0] + | ||
| 1274 | 0.715 * this.rgb[1] + | ||
| 1275 | 0.072 * this.rgb[2] > | ||
| 1276 | 255 / 2 | ||
| 1277 | ); | ||
| 1278 | }; | ||
| 1279 | |||
| 1280 | |||
| 1281 | this._processParentElementsInDOM = function () { | ||
| 1282 | if (this._linkedElementsProcessed) { return; } | ||
| 1283 | this._linkedElementsProcessed = true; | ||
| 1284 | |||
| 1285 | var elm = this.targetElement; | ||
| 1286 | do { | ||
| 1287 | // If the target element or one of its parent nodes has fixed position, | ||
| 1288 | // then use fixed positioning instead | ||
| 1289 | // | ||
| 1290 | // Note: In Firefox, getComputedStyle returns null in a hidden iframe, | ||
| 1291 | // that's why we need to check if the returned style object is non-empty | ||
| 1292 | var currStyle = jsc.getStyle(elm); | ||
| 1293 | if (currStyle && currStyle.position.toLowerCase() === 'fixed') { | ||
| 1294 | this.fixed = true; | ||
| 1295 | } | ||
| 1296 | |||
| 1297 | if (elm !== this.targetElement) { | ||
| 1298 | // Ensure to attach onParentScroll only once to each parent element | ||
| 1299 | // (multiple targetElements can share the same parent nodes) | ||
| 1300 | // | ||
| 1301 | // Note: It's not just offsetParents that can be scrollable, | ||
| 1302 | // that's why we loop through all parent nodes | ||
| 1303 | if (!elm._jscEventsAttached) { | ||
| 1304 | jsc.attachEvent(elm, 'scroll', jsc.onParentScroll); | ||
| 1305 | elm._jscEventsAttached = true; | ||
| 1306 | } | ||
| 1307 | } | ||
| 1308 | } while ((elm = elm.parentNode) && !jsc.isElementType(elm, 'body')); | ||
| 1309 | }; | ||
| 1310 | |||
| 1311 | |||
| 1312 | // r: 0-255 | ||
| 1313 | // g: 0-255 | ||
| 1314 | // b: 0-255 | ||
| 1315 | // | ||
| 1316 | // returns: [ 0-360, 0-100, 0-100 ] | ||
| 1317 | // | ||
| 1318 | function RGB_HSV (r, g, b) { | ||
| 1319 | r /= 255; | ||
| 1320 | g /= 255; | ||
| 1321 | b /= 255; | ||
| 1322 | var n = Math.min(Math.min(r,g),b); | ||
| 1323 | var v = Math.max(Math.max(r,g),b); | ||
| 1324 | var m = v - n; | ||
| 1325 | if (m === 0) { return [ null, 0, 100 * v ]; } | ||
| 1326 | var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m); | ||
| 1327 | return [ | ||
| 1328 | 60 * (h===6?0:h), | ||
| 1329 | 100 * (m/v), | ||
| 1330 | 100 * v | ||
| 1331 | ]; | ||
| 1332 | } | ||
| 1333 | |||
| 1334 | |||
| 1335 | // h: 0-360 | ||
| 1336 | // s: 0-100 | ||
| 1337 | // v: 0-100 | ||
| 1338 | // | ||
| 1339 | // returns: [ 0-255, 0-255, 0-255 ] | ||
| 1340 | // | ||
| 1341 | function HSV_RGB (h, s, v) { | ||
| 1342 | var u = 255 * (v / 100); | ||
| 1343 | |||
| 1344 | if (h === null) { | ||
| 1345 | return [ u, u, u ]; | ||
| 1346 | } | ||
| 1347 | |||
| 1348 | h /= 60; | ||
| 1349 | s /= 100; | ||
| 1350 | |||
| 1351 | var i = Math.floor(h); | ||
| 1352 | var f = i%2 ? h-i : 1-(h-i); | ||
| 1353 | var m = u * (1 - s); | ||
| 1354 | var n = u * (1 - s * f); | ||
| 1355 | switch (i) { | ||
| 1356 | case 6: | ||
| 1357 | case 0: return [u,n,m]; | ||
| 1358 | case 1: return [n,u,m]; | ||
| 1359 | case 2: return [m,u,n]; | ||
| 1360 | case 3: return [m,n,u]; | ||
| 1361 | case 4: return [n,m,u]; | ||
| 1362 | case 5: return [u,m,n]; | ||
| 1363 | } | ||
| 1364 | } | ||
| 1365 | |||
| 1366 | |||
| 1367 | function detachPicker () { | ||
| 1368 | jsc.unsetClass(THIS.targetElement, THIS.activeClass); | ||
| 1369 | jsc.picker.wrap.parentNode.removeChild(jsc.picker.wrap); | ||
| 1370 | delete jsc.picker.owner; | ||
| 1371 | } | ||
| 1372 | |||
| 1373 | |||
| 1374 | function drawPicker () { | ||
| 1375 | |||
| 1376 | // At this point, when drawing the picker, we know what the parent elements are | ||
| 1377 | // and we can do all related DOM operations, such as registering events on them | ||
| 1378 | // or checking their positioning | ||
| 1379 | THIS._processParentElementsInDOM(); | ||
| 1380 | |||
| 1381 | if (!jsc.picker) { | ||
| 1382 | jsc.picker = { | ||
| 1383 | owner: null, | ||
| 1384 | wrap : document.createElement('div'), | ||
| 1385 | box : document.createElement('div'), | ||
| 1386 | boxS : document.createElement('div'), // shadow area | ||
| 1387 | boxB : document.createElement('div'), // border | ||
| 1388 | pad : document.createElement('div'), | ||
| 1389 | padB : document.createElement('div'), // border | ||
| 1390 | padM : document.createElement('div'), // mouse/touch area | ||
| 1391 | padPal : jsc.createPalette(), | ||
| 1392 | cross : document.createElement('div'), | ||
| 1393 | crossBY : document.createElement('div'), // border Y | ||
| 1394 | crossBX : document.createElement('div'), // border X | ||
| 1395 | crossLY : document.createElement('div'), // line Y | ||
| 1396 | crossLX : document.createElement('div'), // line X | ||
| 1397 | sld : document.createElement('div'), | ||
| 1398 | sldB : document.createElement('div'), // border | ||
| 1399 | sldM : document.createElement('div'), // mouse/touch area | ||
| 1400 | sldGrad : jsc.createSliderGradient(), | ||
| 1401 | sldPtrS : document.createElement('div'), // slider pointer spacer | ||
| 1402 | sldPtrIB : document.createElement('div'), // slider pointer inner border | ||
| 1403 | sldPtrMB : document.createElement('div'), // slider pointer middle border | ||
| 1404 | sldPtrOB : document.createElement('div'), // slider pointer outer border | ||
| 1405 | btn : document.createElement('div'), | ||
| 1406 | btnT : document.createElement('span') // text | ||
| 1407 | }; | ||
| 1408 | |||
| 1409 | jsc.picker.pad.appendChild(jsc.picker.padPal.elm); | ||
| 1410 | jsc.picker.padB.appendChild(jsc.picker.pad); | ||
| 1411 | jsc.picker.cross.appendChild(jsc.picker.crossBY); | ||
| 1412 | jsc.picker.cross.appendChild(jsc.picker.crossBX); | ||
| 1413 | jsc.picker.cross.appendChild(jsc.picker.crossLY); | ||
| 1414 | jsc.picker.cross.appendChild(jsc.picker.crossLX); | ||
| 1415 | jsc.picker.padB.appendChild(jsc.picker.cross); | ||
| 1416 | jsc.picker.box.appendChild(jsc.picker.padB); | ||
| 1417 | jsc.picker.box.appendChild(jsc.picker.padM); | ||
| 1418 | |||
| 1419 | jsc.picker.sld.appendChild(jsc.picker.sldGrad.elm); | ||
| 1420 | jsc.picker.sldB.appendChild(jsc.picker.sld); | ||
| 1421 | jsc.picker.sldB.appendChild(jsc.picker.sldPtrOB); | ||
| 1422 | jsc.picker.sldPtrOB.appendChild(jsc.picker.sldPtrMB); | ||
| 1423 | jsc.picker.sldPtrMB.appendChild(jsc.picker.sldPtrIB); | ||
| 1424 | jsc.picker.sldPtrIB.appendChild(jsc.picker.sldPtrS); | ||
| 1425 | jsc.picker.box.appendChild(jsc.picker.sldB); | ||
| 1426 | jsc.picker.box.appendChild(jsc.picker.sldM); | ||
| 1427 | |||
| 1428 | jsc.picker.btn.appendChild(jsc.picker.btnT); | ||
| 1429 | jsc.picker.box.appendChild(jsc.picker.btn); | ||
| 1430 | |||
| 1431 | jsc.picker.boxB.appendChild(jsc.picker.box); | ||
| 1432 | jsc.picker.wrap.appendChild(jsc.picker.boxS); | ||
| 1433 | jsc.picker.wrap.appendChild(jsc.picker.boxB); | ||
| 1434 | } | ||
| 1435 | |||
| 1436 | var p = jsc.picker; | ||
| 1437 | |||
| 1438 | var displaySlider = !!jsc.getSliderComponent(THIS); | ||
| 1439 | var dims = jsc.getPickerDims(THIS); | ||
| 1440 | var crossOuterSize = (2 * THIS.pointerBorderWidth + THIS.pointerThickness + 2 * THIS.crossSize); | ||
| 1441 | var padToSliderPadding = jsc.getPadToSliderPadding(THIS); | ||
| 1442 | var borderRadius = Math.min( | ||
| 1443 | THIS.borderRadius, | ||
| 1444 | Math.round(THIS.padding * Math.PI)); // px | ||
| 1445 | var padCursor = 'crosshair'; | ||
| 1446 | |||
| 1447 | // wrap | ||
| 1448 | p.wrap.style.clear = 'both'; | ||
| 1449 | p.wrap.style.width = (dims[0] + 2 * THIS.borderWidth) + 'px'; | ||
| 1450 | p.wrap.style.height = (dims[1] + 2 * THIS.borderWidth) + 'px'; | ||
| 1451 | p.wrap.style.zIndex = THIS.zIndex; | ||
| 1452 | |||
| 1453 | // picker | ||
| 1454 | p.box.style.width = dims[0] + 'px'; | ||
| 1455 | p.box.style.height = dims[1] + 'px'; | ||
| 1456 | |||
| 1457 | p.boxS.style.position = 'absolute'; | ||
| 1458 | p.boxS.style.left = '0'; | ||
| 1459 | p.boxS.style.top = '0'; | ||
| 1460 | p.boxS.style.width = '100%'; | ||
| 1461 | p.boxS.style.height = '100%'; | ||
| 1462 | jsc.setBorderRadius(p.boxS, borderRadius + 'px'); | ||
| 1463 | |||
| 1464 | // picker border | ||
| 1465 | p.boxB.style.position = 'relative'; | ||
| 1466 | p.boxB.style.border = THIS.borderWidth + 'px solid'; | ||
| 1467 | p.boxB.style.borderColor = THIS.borderColor; | ||
| 1468 | p.boxB.style.background = THIS.backgroundColor; | ||
| 1469 | jsc.setBorderRadius(p.boxB, borderRadius + 'px'); | ||
| 1470 | |||
| 1471 | // IE hack: | ||
| 1472 | // If the element is transparent, IE will trigger the event on the elements under it, | ||
| 1473 | // e.g. on Canvas or on elements with border | ||
| 1474 | p.padM.style.background = | ||
| 1475 | p.sldM.style.background = | ||
| 1476 | '#FFF'; | ||
| 1477 | jsc.setStyle(p.padM, 'opacity', '0'); | ||
| 1478 | jsc.setStyle(p.sldM, 'opacity', '0'); | ||
| 1479 | |||
| 1480 | // pad | ||
| 1481 | p.pad.style.position = 'relative'; | ||
| 1482 | p.pad.style.width = THIS.width + 'px'; | ||
| 1483 | p.pad.style.height = THIS.height + 'px'; | ||
| 1484 | |||
| 1485 | // pad palettes (HSV and HVS) | ||
| 1486 | p.padPal.draw(THIS.width, THIS.height, jsc.getPadYComponent(THIS)); | ||
| 1487 | |||
| 1488 | // pad border | ||
| 1489 | p.padB.style.position = 'absolute'; | ||
| 1490 | p.padB.style.left = THIS.padding + 'px'; | ||
| 1491 | p.padB.style.top = THIS.padding + 'px'; | ||
| 1492 | p.padB.style.border = THIS.insetWidth + 'px solid'; | ||
| 1493 | p.padB.style.borderColor = THIS.insetColor; | ||
| 1494 | |||
| 1495 | // pad mouse area | ||
| 1496 | p.padM._jscInstance = THIS; | ||
| 1497 | p.padM._jscControlName = 'pad'; | ||
| 1498 | p.padM.style.position = 'absolute'; | ||
| 1499 | p.padM.style.left = '0'; | ||
| 1500 | p.padM.style.top = '0'; | ||
| 1501 | p.padM.style.width = (THIS.padding + 2 * THIS.insetWidth + THIS.width + padToSliderPadding / 2) + 'px'; | ||
| 1502 | p.padM.style.height = dims[1] + 'px'; | ||
| 1503 | p.padM.style.cursor = padCursor; | ||
| 1504 | |||
| 1505 | // pad cross | ||
| 1506 | p.cross.style.position = 'absolute'; | ||
| 1507 | p.cross.style.left = | ||
| 1508 | p.cross.style.top = | ||
| 1509 | '0'; | ||
| 1510 | p.cross.style.width = | ||
| 1511 | p.cross.style.height = | ||
| 1512 | crossOuterSize + 'px'; | ||
| 1513 | |||
| 1514 | // pad cross border Y and X | ||
| 1515 | p.crossBY.style.position = | ||
| 1516 | p.crossBX.style.position = | ||
| 1517 | 'absolute'; | ||
| 1518 | p.crossBY.style.background = | ||
| 1519 | p.crossBX.style.background = | ||
| 1520 | THIS.pointerBorderColor; | ||
| 1521 | p.crossBY.style.width = | ||
| 1522 | p.crossBX.style.height = | ||
| 1523 | (2 * THIS.pointerBorderWidth + THIS.pointerThickness) + 'px'; | ||
| 1524 | p.crossBY.style.height = | ||
| 1525 | p.crossBX.style.width = | ||
| 1526 | crossOuterSize + 'px'; | ||
| 1527 | p.crossBY.style.left = | ||
| 1528 | p.crossBX.style.top = | ||
| 1529 | (Math.floor(crossOuterSize / 2) - Math.floor(THIS.pointerThickness / 2) - THIS.pointerBorderWidth) + 'px'; | ||
| 1530 | p.crossBY.style.top = | ||
| 1531 | p.crossBX.style.left = | ||
| 1532 | '0'; | ||
| 1533 | |||
| 1534 | // pad cross line Y and X | ||
| 1535 | p.crossLY.style.position = | ||
| 1536 | p.crossLX.style.position = | ||
| 1537 | 'absolute'; | ||
| 1538 | p.crossLY.style.background = | ||
| 1539 | p.crossLX.style.background = | ||
| 1540 | THIS.pointerColor; | ||
| 1541 | p.crossLY.style.height = | ||
| 1542 | p.crossLX.style.width = | ||
| 1543 | (crossOuterSize - 2 * THIS.pointerBorderWidth) + 'px'; | ||
| 1544 | p.crossLY.style.width = | ||
| 1545 | p.crossLX.style.height = | ||
| 1546 | THIS.pointerThickness + 'px'; | ||
| 1547 | p.crossLY.style.left = | ||
| 1548 | p.crossLX.style.top = | ||
| 1549 | (Math.floor(crossOuterSize / 2) - Math.floor(THIS.pointerThickness / 2)) + 'px'; | ||
| 1550 | p.crossLY.style.top = | ||
| 1551 | p.crossLX.style.left = | ||
| 1552 | THIS.pointerBorderWidth + 'px'; | ||
| 1553 | |||
| 1554 | // slider | ||
| 1555 | p.sld.style.overflow = 'hidden'; | ||
| 1556 | p.sld.style.width = THIS.sliderSize + 'px'; | ||
| 1557 | p.sld.style.height = THIS.height + 'px'; | ||
| 1558 | |||
| 1559 | // slider gradient | ||
| 1560 | p.sldGrad.draw(THIS.sliderSize, THIS.height, '#000', '#000'); | ||
| 1561 | |||
| 1562 | // slider border | ||
| 1563 | p.sldB.style.display = displaySlider ? 'block' : 'none'; | ||
| 1564 | p.sldB.style.position = 'absolute'; | ||
| 1565 | p.sldB.style.right = THIS.padding + 'px'; | ||
| 1566 | p.sldB.style.top = THIS.padding + 'px'; | ||
| 1567 | p.sldB.style.border = THIS.insetWidth + 'px solid'; | ||
| 1568 | p.sldB.style.borderColor = THIS.insetColor; | ||
| 1569 | |||
| 1570 | // slider mouse area | ||
| 1571 | p.sldM._jscInstance = THIS; | ||
| 1572 | p.sldM._jscControlName = 'sld'; | ||
| 1573 | p.sldM.style.display = displaySlider ? 'block' : 'none'; | ||
| 1574 | p.sldM.style.position = 'absolute'; | ||
| 1575 | p.sldM.style.right = '0'; | ||
| 1576 | p.sldM.style.top = '0'; | ||
| 1577 | p.sldM.style.width = (THIS.sliderSize + padToSliderPadding / 2 + THIS.padding + 2 * THIS.insetWidth) + 'px'; | ||
| 1578 | p.sldM.style.height = dims[1] + 'px'; | ||
| 1579 | p.sldM.style.cursor = 'default'; | ||
| 1580 | |||
| 1581 | // slider pointer inner and outer border | ||
| 1582 | p.sldPtrIB.style.border = | ||
| 1583 | p.sldPtrOB.style.border = | ||
| 1584 | THIS.pointerBorderWidth + 'px solid ' + THIS.pointerBorderColor; | ||
| 1585 | |||
| 1586 | // slider pointer outer border | ||
| 1587 | p.sldPtrOB.style.position = 'absolute'; | ||
| 1588 | p.sldPtrOB.style.left = -(2 * THIS.pointerBorderWidth + THIS.pointerThickness) + 'px'; | ||
| 1589 | p.sldPtrOB.style.top = '0'; | ||
| 1590 | |||
| 1591 | // slider pointer middle border | ||
| 1592 | p.sldPtrMB.style.border = THIS.pointerThickness + 'px solid ' + THIS.pointerColor; | ||
| 1593 | |||
| 1594 | // slider pointer spacer | ||
| 1595 | p.sldPtrS.style.width = THIS.sliderSize + 'px'; | ||
| 1596 | p.sldPtrS.style.height = sliderPtrSpace + 'px'; | ||
| 1597 | |||
| 1598 | // the Close button | ||
| 1599 | function setBtnBorder () { | ||
| 1600 | var insetColors = THIS.insetColor.split(/\s+/); | ||
| 1601 | var outsetColor = insetColors.length < 2 ? insetColors[0] : insetColors[1] + ' ' + insetColors[0] + ' ' + insetColors[0] + ' ' + insetColors[1]; | ||
| 1602 | p.btn.style.borderColor = outsetColor; | ||
| 1603 | } | ||
| 1604 | p.btn.style.display = THIS.closable ? 'block' : 'none'; | ||
| 1605 | p.btn.style.position = 'absolute'; | ||
| 1606 | p.btn.style.left = THIS.padding + 'px'; | ||
| 1607 | p.btn.style.bottom = THIS.padding + 'px'; | ||
| 1608 | p.btn.style.padding = '0 15px'; | ||
| 1609 | p.btn.style.height = THIS.buttonHeight + 'px'; | ||
| 1610 | p.btn.style.border = THIS.insetWidth + 'px solid'; | ||
| 1611 | setBtnBorder(); | ||
| 1612 | p.btn.style.color = THIS.buttonColor; | ||
| 1613 | p.btn.style.font = '12px sans-serif'; | ||
| 1614 | p.btn.style.textAlign = 'center'; | ||
| 1615 | try { | ||
| 1616 | p.btn.style.cursor = 'pointer'; | ||
| 1617 | } catch(eOldIE) { | ||
| 1618 | p.btn.style.cursor = 'hand'; | ||
| 1619 | } | ||
| 1620 | p.btn.onmousedown = function () { | ||
| 1621 | THIS.hide(); | ||
| 1622 | }; | ||
| 1623 | p.btnT.style.lineHeight = THIS.buttonHeight + 'px'; | ||
| 1624 | p.btnT.innerHTML = ''; | ||
| 1625 | p.btnT.appendChild(document.createTextNode(THIS.closeText)); | ||
| 1626 | |||
| 1627 | // place pointers | ||
| 1628 | redrawPad(); | ||
| 1629 | redrawSld(); | ||
| 1630 | |||
| 1631 | // If we are changing the owner without first closing the picker, | ||
| 1632 | // make sure to first deal with the old owner | ||
| 1633 | if (jsc.picker.owner && jsc.picker.owner !== THIS) { | ||
| 1634 | jsc.unsetClass(jsc.picker.owner.targetElement, THIS.activeClass); | ||
| 1635 | } | ||
| 1636 | |||
| 1637 | // Set the new picker owner | ||
| 1638 | jsc.picker.owner = THIS; | ||
| 1639 | |||
| 1640 | // The redrawPosition() method needs picker.owner to be set, that's why we call it here, | ||
| 1641 | // after setting the owner | ||
| 1642 | if (jsc.isElementType(container, 'body')) { | ||
| 1643 | jsc.redrawPosition(); | ||
| 1644 | } else { | ||
| 1645 | jsc._drawPosition(THIS, 0, 0, 'relative', false); | ||
| 1646 | } | ||
| 1647 | |||
| 1648 | if (p.wrap.parentNode != container) { | ||
| 1649 | container.appendChild(p.wrap); | ||
| 1650 | } | ||
| 1651 | |||
| 1652 | jsc.setClass(THIS.targetElement, THIS.activeClass); | ||
| 1653 | } | ||
| 1654 | |||
| 1655 | |||
| 1656 | function redrawPad () { | ||
| 1657 | // redraw the pad pointer | ||
| 1658 | switch (jsc.getPadYComponent(THIS)) { | ||
| 1659 | case 's': var yComponent = 1; break; | ||
| 1660 | case 'v': var yComponent = 2; break; | ||
| 1661 | } | ||
| 1662 | var x = Math.round((THIS.hsv[0] / 360) * (THIS.width - 1)); | ||
| 1663 | var y = Math.round((1 - THIS.hsv[yComponent] / 100) * (THIS.height - 1)); | ||
| 1664 | var crossOuterSize = (2 * THIS.pointerBorderWidth + THIS.pointerThickness + 2 * THIS.crossSize); | ||
| 1665 | var ofs = -Math.floor(crossOuterSize / 2); | ||
| 1666 | jsc.picker.cross.style.left = (x + ofs) + 'px'; | ||
| 1667 | jsc.picker.cross.style.top = (y + ofs) + 'px'; | ||
| 1668 | |||
| 1669 | // redraw the slider | ||
| 1670 | switch (jsc.getSliderComponent(THIS)) { | ||
| 1671 | case 's': | ||
| 1672 | var rgb1 = HSV_RGB(THIS.hsv[0], 100, THIS.hsv[2]); | ||
| 1673 | var rgb2 = HSV_RGB(THIS.hsv[0], 0, THIS.hsv[2]); | ||
| 1674 | var color1 = 'rgb(' + | ||
| 1675 | Math.round(rgb1[0]) + ',' + | ||
| 1676 | Math.round(rgb1[1]) + ',' + | ||
| 1677 | Math.round(rgb1[2]) + ')'; | ||
| 1678 | var color2 = 'rgb(' + | ||
| 1679 | Math.round(rgb2[0]) + ',' + | ||
| 1680 | Math.round(rgb2[1]) + ',' + | ||
| 1681 | Math.round(rgb2[2]) + ')'; | ||
| 1682 | jsc.picker.sldGrad.draw(THIS.sliderSize, THIS.height, color1, color2); | ||
| 1683 | break; | ||
| 1684 | case 'v': | ||
| 1685 | var rgb = HSV_RGB(THIS.hsv[0], THIS.hsv[1], 100); | ||
| 1686 | var color1 = 'rgb(' + | ||
| 1687 | Math.round(rgb[0]) + ',' + | ||
| 1688 | Math.round(rgb[1]) + ',' + | ||
| 1689 | Math.round(rgb[2]) + ')'; | ||
| 1690 | var color2 = '#000'; | ||
| 1691 | jsc.picker.sldGrad.draw(THIS.sliderSize, THIS.height, color1, color2); | ||
| 1692 | break; | ||
| 1693 | } | ||
| 1694 | } | ||
| 1695 | |||
| 1696 | |||
| 1697 | function redrawSld () { | ||
| 1698 | var sldComponent = jsc.getSliderComponent(THIS); | ||
| 1699 | if (sldComponent) { | ||
| 1700 | // redraw the slider pointer | ||
| 1701 | switch (sldComponent) { | ||
| 1702 | case 's': var yComponent = 1; break; | ||
| 1703 | case 'v': var yComponent = 2; break; | ||
| 1704 | } | ||
| 1705 | var y = Math.round((1 - THIS.hsv[yComponent] / 100) * (THIS.height - 1)); | ||
| 1706 | jsc.picker.sldPtrOB.style.top = (y - (2 * THIS.pointerBorderWidth + THIS.pointerThickness) - Math.floor(sliderPtrSpace / 2)) + 'px'; | ||
| 1707 | } | ||
| 1708 | } | ||
| 1709 | |||
| 1710 | |||
| 1711 | function isPickerOwner () { | ||
| 1712 | return jsc.picker && jsc.picker.owner === THIS; | ||
| 1713 | } | ||
| 1714 | |||
| 1715 | |||
| 1716 | function blurValue () { | ||
| 1717 | THIS.importColor(); | ||
| 1718 | } | ||
| 1719 | |||
| 1720 | |||
| 1721 | // Find the target element | ||
| 1722 | if (typeof targetElement === 'string') { | ||
| 1723 | var id = targetElement; | ||
| 1724 | var elm = document.getElementById(id); | ||
| 1725 | if (elm) { | ||
| 1726 | this.targetElement = elm; | ||
| 1727 | } else { | ||
| 1728 | jsc.warn('Could not find target element with ID \'' + id + '\''); | ||
| 1729 | } | ||
| 1730 | } else if (targetElement) { | ||
| 1731 | this.targetElement = targetElement; | ||
| 1732 | } else { | ||
| 1733 | jsc.warn('Invalid target element: \'' + targetElement + '\''); | ||
| 1734 | } | ||
| 1735 | |||
| 1736 | if (this.targetElement._jscLinkedInstance) { | ||
| 1737 | jsc.warn('Cannot link jscolor twice to the same element. Skipping.'); | ||
| 1738 | return; | ||
| 1739 | } | ||
| 1740 | this.targetElement._jscLinkedInstance = this; | ||
| 1741 | |||
| 1742 | // Find the value element | ||
| 1743 | this.valueElement = jsc.fetchElement(this.valueElement); | ||
| 1744 | // Find the style element | ||
| 1745 | this.styleElement = jsc.fetchElement(this.styleElement); | ||
| 1746 | |||
| 1747 | var THIS = this; | ||
| 1748 | var container = | ||
| 1749 | this.container ? | ||
| 1750 | jsc.fetchElement(this.container) : | ||
| 1751 | document.getElementsByTagName('body')[0]; | ||
| 1752 | var sliderPtrSpace = 3; // px | ||
| 1753 | |||
| 1754 | // For BUTTON elements it's important to stop them from sending the form when clicked | ||
| 1755 | // (e.g. in Safari) | ||
| 1756 | if (jsc.isElementType(this.targetElement, 'button')) { | ||
| 1757 | if (this.targetElement.onclick) { | ||
| 1758 | var origCallback = this.targetElement.onclick; | ||
| 1759 | this.targetElement.onclick = function (evt) { | ||
| 1760 | origCallback.call(this, evt); | ||
| 1761 | return false; | ||
| 1762 | }; | ||
| 1763 | } else { | ||
| 1764 | this.targetElement.onclick = function () { return false; }; | ||
| 1765 | } | ||
| 1766 | } | ||
| 1767 | |||
| 1768 | /* | ||
| 1769 | var elm = this.targetElement; | ||
| 1770 | do { | ||
| 1771 | // If the target element or one of its offsetParents has fixed position, | ||
| 1772 | // then use fixed positioning instead | ||
| 1773 | // | ||
| 1774 | // Note: In Firefox, getComputedStyle returns null in a hidden iframe, | ||
| 1775 | // that's why we need to check if the returned style object is non-empty | ||
| 1776 | var currStyle = jsc.getStyle(elm); | ||
| 1777 | if (currStyle && currStyle.position.toLowerCase() === 'fixed') { | ||
| 1778 | this.fixed = true; | ||
| 1779 | } | ||
| 1780 | |||
| 1781 | if (elm !== this.targetElement) { | ||
| 1782 | // attach onParentScroll so that we can recompute the picker position | ||
| 1783 | // when one of the offsetParents is scrolled | ||
| 1784 | if (!elm._jscEventsAttached) { | ||
| 1785 | jsc.attachEvent(elm, 'scroll', jsc.onParentScroll); | ||
| 1786 | elm._jscEventsAttached = true; | ||
| 1787 | } | ||
| 1788 | } | ||
| 1789 | } while ((elm = elm.offsetParent) && !jsc.isElementType(elm, 'body')); | ||
| 1790 | */ | ||
| 1791 | |||
| 1792 | // valueElement | ||
| 1793 | if (this.valueElement) { | ||
| 1794 | if (jsc.isElementType(this.valueElement, 'input')) { | ||
| 1795 | var updateField = function () { | ||
| 1796 | THIS.fromString(THIS.valueElement.value, jsc.leaveValue); | ||
| 1797 | jsc.dispatchFineChange(THIS); | ||
| 1798 | }; | ||
| 1799 | jsc.attachEvent(this.valueElement, 'keyup', updateField); | ||
| 1800 | jsc.attachEvent(this.valueElement, 'input', updateField); | ||
| 1801 | jsc.attachEvent(this.valueElement, 'blur', blurValue); | ||
| 1802 | this.valueElement.setAttribute('autocomplete', 'off'); | ||
| 1803 | } | ||
| 1804 | } | ||
| 1805 | |||
| 1806 | // styleElement | ||
| 1807 | if (this.styleElement) { | ||
| 1808 | this.styleElement._jscOrigStyle = { | ||
| 1809 | backgroundImage : this.styleElement.style.backgroundImage, | ||
| 1810 | backgroundColor : this.styleElement.style.backgroundColor, | ||
| 1811 | color : this.styleElement.style.color | ||
| 1812 | }; | ||
| 1813 | } | ||
| 1814 | |||
| 1815 | if (this.value) { | ||
| 1816 | // Try to set the color from the .value option and if unsuccessful, | ||
| 1817 | // export the current color | ||
| 1818 | this.fromString(this.value) || this.exportColor(); | ||
| 1819 | } else { | ||
| 1820 | this.importColor(); | ||
| 1821 | } | ||
| 1822 | } | ||
| 1823 | |||
| 1824 | }; | ||
| 1825 | |||
| 1826 | |||
| 1827 | //================================ | ||
| 1828 | // Public properties and methods | ||
| 1829 | //================================ | ||
| 1830 | |||
| 1831 | |||
| 1832 | // By default, search for all elements with class="jscolor" and install a color picker on them. | ||
| 1833 | // | ||
| 1834 | // You can change what class name will be looked for by setting the property jscolor.lookupClass | ||
| 1835 | // anywhere in your HTML document. To completely disable the automatic lookup, set it to null. | ||
| 1836 | // | ||
| 1837 | jsc.jscolor.lookupClass = 'jscolor'; | ||
| 1838 | |||
| 1839 | |||
| 1840 | jsc.jscolor.installByClassName = function (className) { | ||
| 1841 | var inputElms = document.getElementsByTagName('input'); | ||
| 1842 | var buttonElms = document.getElementsByTagName('button'); | ||
| 1843 | |||
| 1844 | jsc.tryInstallOnElements(inputElms, className); | ||
| 1845 | jsc.tryInstallOnElements(buttonElms, className); | ||
| 1846 | }; | ||
| 1847 | |||
| 1848 | |||
| 1849 | jsc.register(); | ||
| 1850 | |||
| 1851 | |||
| 1852 | return jsc.jscolor; | ||
| 1853 | |||
| 1854 | |||
| 1855 | })(); } |
| 1 | /* Display Popup when Contact Form 7 successfully submitted */ | ||
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | document.addEventListener( 'wpcf7mailsent', function( event ) { | ||
| 6 | |||
| 7 | var currentformid = event.detail.contactFormId; | ||
| 8 | |||
| 9 | var popup_id = event.detail.apiResponse.popup_id; | ||
| 10 | //Store popup background color and search , is aveliable or not if not aveliable then it is normal color or gradient color | ||
| 11 | if( event.detail.apiResponse.popup_background_option == "bg_color") | ||
| 12 | { | ||
| 13 | var color_code = event.detail.apiResponse.popup_background_color; | ||
| 14 | |||
| 15 | } | ||
| 16 | if(event.detail.apiResponse.popup_background_option === "gradient_color") | ||
| 17 | { | ||
| 18 | var color_code = 'linear-gradient('+ event.detail.apiResponse.popup_gradient_color +','+ event.detail.apiResponse.popup_gradient_color1 +')'; | ||
| 19 | } | ||
| 20 | if(event.detail.apiResponse.popup_background_option === "image") | ||
| 21 | { | ||
| 22 | var color_code = ' url("' + event.detail.apiResponse.popup_image_color + '")right center / cover no-repeat'; | ||
| 23 | } | ||
| 24 | |||
| 25 | if (popup_id != null && popup_id != '') { | ||
| 26 | //popup box | ||
| 27 | |||
| 28 | swal({ | ||
| 29 | |||
| 30 | // set popup background color and image | ||
| 31 | |||
| 32 | background: color_code, | ||
| 33 | |||
| 34 | // set popup message | ||
| 35 | |||
| 36 | title: '<span style="color:' + event.detail.apiResponse.popup_text_color +'">'+event.detail.apiResponse.popup_message+'</span>', | ||
| 37 | |||
| 38 | confirmButtonColor: event.detail.apiResponse.popup_button_background_color, | ||
| 39 | |||
| 40 | |||
| 41 | confirmButtonText: '<span style="color:' + event.detail.apiResponse.popup_text_color +'">'+event.detail.apiResponse.popup_button_text+'</span>', | ||
| 42 | |||
| 43 | // set popup width | ||
| 44 | |||
| 45 | width: event.detail.apiResponse.m_popup_width, | ||
| 46 | |||
| 47 | //set popup duration time in seconds | ||
| 48 | |||
| 49 | timer: event.detail.apiResponse.m_popup_duration, | ||
| 50 | |||
| 51 | |||
| 52 | }) | ||
| 53 | |||
| 54 | jQuery('.swal2-modal').css('border-radius', event.detail.apiResponse.m_popup_radius+"px"); | ||
| 55 | } | ||
| 56 | |||
| 57 | |||
| 58 | }, false ); | ||
| 59 | |||
| 60 |
| 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Sweetalert2=t()}(this,function(){"use strict";function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t,n){return(l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&u(r,n.prototype),r}).apply(null,arguments)}function d(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e,t,n){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=s(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}var t="SweetAlert2:",f=function(e){return Array.prototype.slice.call(e)},m=function(e){console.warn("".concat(t," ").concat(e))},R=function(e){console.error("".concat(t," ").concat(e))},n=[],h=function(e){-1===n.indexOf(e)&&(n.push(e),m(e))},M=function(e){return"function"==typeof e?e():e},H=function(e){return"object"===V(e)&&"function"==typeof e.then},e=Object.freeze({cancel:"cancel",backdrop:"overlay",close:"close",esc:"esc",timer:"timer"}),g=function(e){var t={};for(var n in e)t[e[n]]="swal2-"+e[n];return t},I=g(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","toast","toast-shown","toast-column","fade","show","hide","noanimation","close","title","header","content","actions","confirm","cancel","footer","icon","icon-text","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validationerror","progresssteps","activeprogressstep","progresscircle","progressline","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen"]),b=g(["success","warning","info","question","error"]),y={previousBodyPadding:null},v=function(e,t){return e.classList.contains(t)},_=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},w=function(e,t,n){e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(function(t){e.forEach?e.forEach(function(e){n?e.classList.add(t):e.classList.remove(t)}):n?e.classList.add(t):e.classList.remove(t)}))},D=function(e,t){w(e,t,!0)},N=function(e,t){w(e,t,!1)},W=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(v(e.childNodes[n],t))return e.childNodes[n]},z=function(e){e.style.opacity="",e.style.display=e.id===I.content?"block":"flex"},U=function(e){e.style.opacity="",e.style.display="none"},K=function(e){return e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C=function(){return document.body.querySelector("."+I.container)},k=function(e){var t=C();return t?t.querySelector("."+e):null},x=function(){return k(I.popup)},A=function(){var e=x();return f(e.querySelectorAll("."+I.icon))},B=function(){return k(I.title)},P=function(){return k(I.content)},S=function(){return k(I.image)},E=function(){return k(I.progresssteps)},O=function(){return k(I.confirm)},F=function(){return k(I.cancel)},Z=function(){return k(I.actions)},Q=function(){return k(I.footer)},Y=function(){return k(I.close)},$=function(){var e=f(x().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(e,t){return e=parseInt(e.getAttribute("tabindex")),(t=parseInt(t.getAttribute("tabindex")))<e?1:e<t?-1:0}),t=f(x().querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls]')).filter(function(e){return"-1"!==e.getAttribute("tabindex")});return function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(e.concat(t)).filter(function(e){return K(e)})},L=function(){return!T()&&!document.body.classList.contains(I["no-backdrop"])},T=function(){return document.body.classList.contains(I["toast-shown"])},j=function(){return"undefined"==typeof window||"undefined"==typeof document},q='\n <div aria-labelledby="'.concat(I.title,'" aria-describedby="').concat(I.content,'" class="').concat(I.popup,'" tabindex="-1">\n <div class="').concat(I.header,'">\n <ul class="').concat(I.progresssteps,'"></ul>\n <div class="').concat(I.icon," ").concat(b.error,'">\n <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"></span><span class="swal2-x-mark-line-right"></span></span>\n </div>\n <div class="').concat(I.icon," ").concat(b.question,'">\n <span class="').concat(I["icon-text"],'">?</span>\n </div>\n <div class="').concat(I.icon," ").concat(b.warning,'">\n <span class="').concat(I["icon-text"],'">!</span>\n </div>\n <div class="').concat(I.icon," ").concat(b.info,'">\n <span class="').concat(I["icon-text"],'">i</span>\n </div>\n <div class="').concat(I.icon," ").concat(b.success,'">\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n </div>\n <img class="').concat(I.image,'" />\n <h2 class="').concat(I.title,'" id="').concat(I.title,'"></h2>\n <button type="button" class="').concat(I.close,'">��</button>\n </div>\n <div class="').concat(I.content,'">\n <div id="').concat(I.content,'"></div>\n <input class="').concat(I.input,'" />\n <input type="file" class="').concat(I.file,'" />\n <div class="').concat(I.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(I.select,'"></select>\n <div class="').concat(I.radio,'"></div>\n <label for="').concat(I.checkbox,'" class="').concat(I.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(I.label,'"></span>\n </label>\n <textarea class="').concat(I.textarea,'"></textarea>\n <div class="').concat(I.validationerror,'" id="').concat(I.validationerror,'"></div>\n </div>\n <div class="').concat(I.actions,'">\n <button type="button" class="').concat(I.confirm,'">OK</button>\n <button type="button" class="').concat(I.cancel,'">Cancel</button>\n </div>\n <div class="').concat(I.footer,'">\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),J=function(e){var t=C();if(t&&(t.parentNode.removeChild(t),N([document.documentElement,document.body],[I["no-backdrop"],I["toast-shown"],I["has-column"]])),!j()){var n=document.createElement("div");n.className=I.container,n.innerHTML=q,("string"==typeof e.target?document.querySelector(e.target):e.target).appendChild(n);var o,r=x(),i=P(),a=W(i,I.input),c=W(i,I.file),s=i.querySelector(".".concat(I.range," input")),u=i.querySelector(".".concat(I.range," output")),l=W(i,I.select),d=i.querySelector(".".concat(I.checkbox," input")),p=W(i,I.textarea);r.setAttribute("role",e.toast?"alert":"dialog"),r.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||r.setAttribute("aria-modal","true");var f=function(e){qe.isVisible()&&o!==e.target.value&&qe.resetValidationError(),o=e.target.value};return a.oninput=f,c.onchange=f,l.onchange=f,d.onchange=f,p.oninput=f,s.oninput=function(e){f(e),u.value=s.value},s.onchange=function(e){f(e),s.nextSibling.value=s.value},r}R("SweetAlert2 requires document to initialize")},X=function(e,t){if(!e)return U(t);if("object"===V(e))if(t.innerHTML="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0));else e&&(t.innerHTML=e);z(t)},G=function(){if(j())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(t.hasOwnProperty(n)&&void 0!==e.style[n])return t[n];return!1}(),ee=function(e){var t,n,o=Z(),r=O(),i=F();if(e.showConfirmButton||e.showCancelButton?z(o):U(o),e.showCancelButton?i.style.display="inline-block":U(i),e.showConfirmButton?(n="display",(t=r).style.removeProperty?t.style.removeProperty(n):t.style.removeAttribute(n)):U(r),r.innerHTML=e.confirmButtonText,i.innerHTML=e.cancelButtonText,r.setAttribute("aria-label",e.confirmButtonAriaLabel),i.setAttribute("aria-label",e.cancelButtonAriaLabel),r.className=I.confirm,D(r,e.confirmButtonClass),i.className=I.cancel,D(i,e.cancelButtonClass),e.buttonsStyling){D([r,i],I.styled),e.confirmButtonColor&&(r.style.backgroundColor=e.confirmButtonColor),e.cancelButtonColor&&(i.style.backgroundColor=e.cancelButtonColor);var a=window.getComputedStyle(r).getPropertyValue("background-color");r.style.borderLeftColor=a,r.style.borderRightColor=a}else N([r,i],I.styled),r.style.backgroundColor=r.style.borderLeftColor=r.style.borderRightColor="",i.style.backgroundColor=i.style.borderLeftColor=i.style.borderRightColor=""},te=function(e){var t=P().querySelector("#"+I.content);e.html?X(e.html,t):e.text?(t.textContent=e.text,z(t)):U(t)},ne=function(e){for(var t=A(),n=0;n<t.length;n++)U(t[n]);if(e.type)if(-1!==Object.keys(b).indexOf(e.type)){var o=qe.getPopup().querySelector(".".concat(I.icon,".").concat(b[e.type]));z(o),e.animation&&D(o,"swal2-animate-".concat(e.type,"-icon"))}else R('Unknown type! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.type,'"'))},oe=function(e){var t=S();e.imageUrl?(t.setAttribute("src",e.imageUrl),t.setAttribute("alt",e.imageAlt),z(t),e.imageWidth?t.setAttribute("width",e.imageWidth):t.removeAttribute("width"),e.imageHeight?t.setAttribute("height",e.imageHeight):t.removeAttribute("height"),t.className=I.image,e.imageClass&&D(t,e.imageClass)):U(t)},re=function(r){var i=E(),a=parseInt(null===r.currentProgressStep?qe.getQueueStep():r.currentProgressStep,10);r.progressSteps&&r.progressSteps.length?(z(i),i.innerHTML="",a>=r.progressSteps.length&&m("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.progressSteps.forEach(function(e,t){var n=document.createElement("li");if(D(n,I.progresscircle),n.innerHTML=e,t===a&&D(n,I.activeprogressstep),i.appendChild(n),t!==r.progressSteps.length-1){var o=document.createElement("li");D(o,I.progressline),r.progressStepsDistance&&(o.style.width=r.progressStepsDistance),i.appendChild(o)}})):U(i)},ie=function(e){var t=B();e.titleText?t.innerText=e.titleText:e.title&&("string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),X(e.title,t))},ae=function(){null===y.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(y.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=y.previousBodyPadding+function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}()+"px")},ce={},se=function(e,n){var o=C(),t=x();if(t){null!==e&&"function"==typeof e&&e(t),N(t,I.show),D(t,I.hide);var r=function(){var e,t;T()||(e=window.scrollX,t=window.scrollY,ce.restoreFocusTimeout=setTimeout(function(){ce.previousActiveElement&&ce.previousActiveElement.focus?(ce.previousActiveElement.focus(),ce.previousActiveElement=null):document.body&&document.body.focus()},100),void 0!==e&&void 0!==t&&window.scrollTo(e,t),ce.keydownTarget.removeEventListener("keydown",ce.keydownHandler,{capture:ce.keydownListenerCapture}),ce.keydownHandlerAdded=!1),o.parentNode&&o.parentNode.removeChild(o),N([document.documentElement,document.body],[I.shown,I["height-auto"],I["no-backdrop"],I["toast-shown"],I["toast-column"]]),L()&&(null!==y.previousBodyPadding&&(document.body.style.paddingRight=y.previousBodyPadding,y.previousBodyPadding=null),function(){if(v(document.body,I.iosfix)){var e=parseInt(document.body.style.top,10);N(document.body,I.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}}(),f(document.body.children).forEach(function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})),null!==n&&"function"==typeof n&&setTimeout(function(){n()})};G&&!v(t,I.noanimation)?t.addEventListener(G,function e(){t.removeEventListener(G,e),v(t,I.hide)&&r()}):r()}};function ue(e){var t=function e(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];if(!(this instanceof e))return l(e,n);Object.getPrototypeOf(e).apply(this,n)};return t.prototype=i(Object.create(e.prototype),{constructor:t}),"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}var le={title:"",titleText:"",text:"",html:"",footer:"",type:null,toast:!1,customClass:"",target:"body",backdrop:!0,animation:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:null,confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:null,cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageAlt:"",imageClass:null,timer:null,width:null,padding:null,background:null,input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,grow:!1,position:"center",progressSteps:[],currentProgressStep:null,progressStepsDistance:null,onBeforeOpen:null,onAfterClose:null,onOpen:null,onClose:null,useRejections:!1,expectRejections:!1},de=["useRejections","expectRejections"],pe=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"],fe=function(e){return le.hasOwnProperty(e)||"extraParams"===e},me=function(e){return-1!==de.indexOf(e)},he=function(e){for(var t in e)fe(t)||m('Unknown parameter "'.concat(t,'"')),e.toast&&-1!==pe.indexOf(t)&&m('The parameter "'.concat(t,'" is incompatible with toasts')),me(t)&&h('The parameter "'.concat(t,'" is deprecated and will be removed in the next major release.'))},ge='"setDefaults" & "resetDefaults" methods are deprecated in favor of "mixin" method and will be removed in the next major release. For new projects, use "mixin". For past projects already using "setDefaults", support will be provided through an additional package.',be={};var ye=[],ve=function(){var e=x();e||qe(""),e=x();var t=Z(),n=O(),o=F();z(t),z(n),D([e,t],I.loading),n.disabled=!0,o.disabled=!0,e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},we=Object.freeze({isValidParameter:fe,isDeprecatedParameter:me,argsToParams:function(n){var o={};switch(V(n[0])){case"object":i(o,n[0]);break;default:["title","html","type"].forEach(function(e,t){switch(V(n[t])){case"string":o[e]=n[t];break;case"undefined":break;default:R("Unexpected type of ".concat(e,'! Expected "string", got ').concat(V(n[t])))}})}return o},adaptInputValidator:function(n){return function(e,t){return n.call(this,e,t).then(function(){},function(e){return e})}},close:se,closePopup:se,closeModal:se,closeToast:se,isVisible:function(){return!!x()},clickConfirm:function(){return O().click()},clickCancel:function(){return F().click()},getContainer:C,getPopup:x,getTitle:B,getContent:P,getImage:S,getIcons:A,getCloseButton:Y,getButtonsWrapper:function(){return h("swal.getButtonsWrapper() is deprecated and will be removed in the next major release, use swal.getActions() instead"),k(I.actions)},getActions:Z,getConfirmButton:O,getCancelButton:F,getFooter:Q,getFocusableElements:$,isLoading:function(){return x().hasAttribute("data-loading")},fire:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l(this,t)},mixin:function(n){return ue(function(e){function t(){return c(this,t),d(this,s(t).apply(this,arguments))}return a(t,e),r(t,[{key:"_main",value:function(e){return p(s(t.prototype),"_main",this).call(this,i({},n,e))}}]),t}(this))},queue:function(e){var i=this;ye=e;var a=function(){ye=[],document.body.removeAttribute("data-swal2-queue-step")},c=[];return new Promise(function(r){!function t(n,o){n<ye.length?(document.body.setAttribute("data-swal2-queue-step",n),i(ye[n]).then(function(e){void 0!==e.value?(c.push(e.value),t(n+1,o)):(a(),r({dismiss:e.dismiss}))})):(a(),r({value:c}))}(0)})},getQueueStep:function(){return document.body.getAttribute("data-swal2-queue-step")},insertQueueStep:function(e,t){return t&&t<ye.length?ye.splice(t,0,e):ye.push(e)},deleteQueueStep:function(e){void 0!==ye[e]&&ye.splice(e,1)},showLoading:ve,enableLoading:ve,getTimerLeft:function(){return ce.timeout&&ce.timeout.getTimerLeft()}}),Ce="function"==typeof Symbol?Symbol:function(){var t=0;function e(e){return"__"+e+"_"+Math.floor(1e9*Math.random())+"_"+ ++t+"__"}return e.iterator=e("Symbol.iterator"),e}(),ke="function"==typeof WeakMap?WeakMap:function(n,o,t){function e(){o(this,n,{value:Ce("WeakMap")})}return e.prototype={delete:function(e){delete e[this[n]]},get:function(e){return e[this[n]]},has:function(e){return t.call(e,this[n])},set:function(e,t){o(e,this[n],{configurable:!0,value:t})}},e}(Ce("WeakMap"),Object.defineProperty,{}.hasOwnProperty),xe={promise:new ke,innerParams:new ke,domCache:new ke};function Ae(){var e=xe.innerParams.get(this),t=xe.domCache.get(this);e.showConfirmButton||(U(t.confirmButton),e.showCancelButton||U(t.actions)),N([t.popup,t.actions],I.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.cancelButton.disabled=!1}var Be=function e(t,n){var o,r,i;c(this,e);var a=n;this.start=function(){i=!0,r=new Date,o=setTimeout(t,a)},this.stop=function(){i=!1,clearTimeout(o),a-=new Date-r},this.getTimerLeft=function(){return i&&(this.stop(),this.start()),a},this.start()},Pe={email:function(e,t){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.reject(t&&t.validationMessage?t.validationMessage:"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/.test(e)?Promise.resolve():Promise.reject(t&&t.validationMessage?t.validationMessage:"Invalid URL")}};var Se=function(e){var t=C(),n=x();null!==e.onBeforeOpen&&"function"==typeof e.onBeforeOpen&&e.onBeforeOpen(n),e.animation?(D(n,I.show),D(t,I.fade),N(n,I.hide)):N(n,I.fade),z(n),t.style.overflowY="hidden",G&&!v(n,I.noanimation)?n.addEventListener(G,function e(){n.removeEventListener(G,e),t.style.overflowY="auto"}):t.style.overflowY="auto",D([document.documentElement,document.body,t],I.shown),e.heightAuto&&e.backdrop&&!e.toast&&D([document.documentElement,document.body],I["height-auto"]),L()&&(ae(),function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!v(document.body,I.iosfix)){var e=document.body.scrollTop;document.body.style.top=-1*e+"px",D(document.body,I.iosfix)}}(),f(document.body.children).forEach(function(e){e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})),T()||ce.previousActiveElement||(ce.previousActiveElement=document.activeElement),null!==e.onOpen&&"function"==typeof e.onOpen&&setTimeout(function(){e.onOpen(n)})};var Ee,Oe=Object.freeze({hideLoading:Ae,disableLoading:Ae,getInput:function(e){var t=xe.innerParams.get(this),n=xe.domCache.get(this);if(!(e=e||t.input))return null;switch(e){case"select":case"textarea":case"file":return W(n.content,I[e]);case"checkbox":return n.popup.querySelector(".".concat(I.checkbox," input"));case"radio":return n.popup.querySelector(".".concat(I.radio," input:checked"))||n.popup.querySelector(".".concat(I.radio," input:first-child"));case"range":return n.popup.querySelector(".".concat(I.range," input"));default:return W(n.content,I.input)}},enableButtons:function(){var e=xe.domCache.get(this);e.confirmButton.disabled=!1,e.cancelButton.disabled=!1},disableButtons:function(){var e=xe.domCache.get(this);e.confirmButton.disabled=!0,e.cancelButton.disabled=!0},enableConfirmButton:function(){xe.domCache.get(this).confirmButton.disabled=!1},disableConfirmButton:function(){xe.domCache.get(this).confirmButton.disabled=!0},enableInput:function(){var e=this.getInput();if(!e)return!1;if("radio"===e.type)for(var t=e.parentNode.parentNode.querySelectorAll("input"),n=0;n<t.length;n++)t[n].disabled=!1;else e.disabled=!1},disableInput:function(){var e=this.getInput();if(!e)return!1;if(e&&"radio"===e.type)for(var t=e.parentNode.parentNode.querySelectorAll("input"),n=0;n<t.length;n++)t[n].disabled=!0;else e.disabled=!0},showValidationError:function(e){var t=xe.domCache.get(this);t.validationError.innerHTML=e;var n=window.getComputedStyle(t.popup);t.validationError.style.marginLeft="-".concat(n.getPropertyValue("padding-left")),t.validationError.style.marginRight="-".concat(n.getPropertyValue("padding-right")),z(t.validationError);var o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedBy",I.validationerror),_(o),D(o,I.inputerror))},resetValidationError:function(){var e=xe.domCache.get(this);e.validationError&&U(e.validationError);var t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),N(t,I.inputerror))},getProgressSteps:function(){return xe.innerParams.get(this).progressSteps},setProgressSteps:function(e){var t=i({},xe.innerParams.get(this),{progressSteps:e});xe.innerParams.set(this,t),re(t)},showProgressSteps:function(){var e=xe.domCache.get(this);z(e.progressSteps)},hideProgressSteps:function(){var e=xe.domCache.get(this);U(e.progressSteps)},_main:function(e){var L=this;he(e);var T=i({},le,e);!function(t){var e;t.inputValidator||Object.keys(Pe).forEach(function(e){t.input===e&&(t.inputValidator=t.expectRejections?Pe[e]:qe.adaptInputValidator(Pe[e]))}),(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(m('Target parameter is not valid, defaulting to "body"'),t.target="body");var n=x(),o="string"==typeof t.target?document.querySelector(t.target):t.target;e=n&&o&&n.parentNode!==o.parentNode?J(t):n||J(t),t.width&&(e.style.width="number"==typeof t.width?t.width+"px":t.width),t.padding&&(e.style.padding="number"==typeof t.padding?t.padding+"px":t.padding),t.background&&(e.style.background=t.background);for(var r=window.getComputedStyle(e).getPropertyValue("background-color"),i=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),a=0;a<i.length;a++)i[a].style.backgroundColor=r;var c=C(),s=Y(),u=Q();if(ie(t),te(t),"string"==typeof t.backdrop?C().style.background=t.backdrop:t.backdrop||D([document.documentElement,document.body],I["no-backdrop"]),!t.backdrop&&t.allowOutsideClick&&m('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.position in I?D(c,I[t.position]):(m('The "position" parameter is not valid, defaulting to "center"'),D(c,I.center)),t.grow&&"string"==typeof t.grow){var l="grow-"+t.grow;l in I&&D(c,I[l])}"function"==typeof t.animation&&(t.animation=t.animation.call()),t.showCloseButton?(s.setAttribute("aria-label",t.closeButtonAriaLabel),z(s)):U(s),e.className=I.popup,t.toast?(D([document.documentElement,document.body],I["toast-shown"]),D(e,I.toast)):D(e,I.modal),t.customClass&&D(e,t.customClass),re(t),ne(t),oe(t),ee(t),X(t.footer,u),!0===t.animation?N(e,I.noanimation):D(e,I.noanimation),t.showLoaderOnConfirm&&!t.preConfirm&&m("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request")}(T),Object.freeze(T),xe.innerParams.set(this,T),ce.timeout&&(ce.timeout.stop(),delete ce.timeout),clearTimeout(ce.restoreFocusTimeout);var j={popup:x(),container:C(),content:P(),actions:Z(),confirmButton:O(),cancelButton:F(),closeButton:Y(),validationError:k(I.validationerror),progressSteps:E()};xe.domCache.set(this,j);var q=this.constructor;return new Promise(function(t,n){var o=function(e){q.closePopup(T.onClose,T.onAfterClose),T.useRejections?t(e):t({value:e})},s=function(e){q.closePopup(T.onClose,T.onAfterClose),T.useRejections?n(e):t({dismiss:e})},u=function(e){q.closePopup(T.onClose,T.onAfterClose),n(e)};T.timer&&(ce.timeout=new Be(function(){s("timer"),delete ce.timeout},T.timer)),T.input&&setTimeout(function(){var e=L.getInput();e&&_(e)},0);for(var l=function(t){if(T.showLoaderOnConfirm&&q.showLoading(),T.preConfirm){L.resetValidationError();var e=Promise.resolve().then(function(){return T.preConfirm(t,T.extraParams)});T.expectRejections?e.then(function(e){return o(e||t)},function(e){L.hideLoading(),e&&L.showValidationError(e)}):e.then(function(e){K(j.validationError)||!1===e?L.hideLoading():o(e||t)},function(e){return u(e)})}else o(t)},e=function(e){var t=e.target,n=j.confirmButton,o=j.cancelButton,r=n&&(n===t||n.contains(t)),i=o&&(o===t||o.contains(t));switch(e.type){case"click":if(r&&q.isVisible())if(L.disableButtons(),T.input){var a=function(){var e=L.getInput();if(!e)return null;switch(T.input){case"checkbox":return e.checked?1:0;case"radio":return e.checked?e.value:null;case"file":return e.files.length?e.files[0]:null;default:return T.inputAutoTrim?e.value.trim():e.value}}();if(T.inputValidator){L.disableInput();var c=Promise.resolve().then(function(){return T.inputValidator(a,T.extraParams)});T.expectRejections?c.then(function(){L.enableButtons(),L.enableInput(),l(a)},function(e){L.enableButtons(),L.enableInput(),e&&L.showValidationError(e)}):c.then(function(e){L.enableButtons(),L.enableInput(),e?L.showValidationError(e):l(a)},function(e){return u(e)})}else l(a)}else l(!0);else i&&q.isVisible()&&(L.disableButtons(),s(q.DismissReason.cancel))}},r=j.popup.querySelectorAll("button"),i=0;i<r.length;i++)r[i].onclick=e,r[i].onmouseover=e,r[i].onmouseout=e,r[i].onmousedown=e;if(j.closeButton.onclick=function(){s(q.DismissReason.close)},T.toast)j.popup.onclick=function(){T.showConfirmButton||T.showCancelButton||T.showCloseButton||T.input||s(q.DismissReason.close)};else{var a=!1;j.popup.onmousedown=function(){j.container.onmouseup=function(e){j.container.onmouseup=void 0,e.target===j.container&&(a=!0)}},j.container.onmousedown=function(){j.popup.onmouseup=function(e){j.popup.onmouseup=void 0,(e.target===j.popup||j.popup.contains(e.target))&&(a=!0)}},j.container.onclick=function(e){a?a=!1:e.target===j.container&&M(T.allowOutsideClick)&&s(q.DismissReason.backdrop)}}T.reverseButtons?j.confirmButton.parentNode.insertBefore(j.cancelButton,j.confirmButton):j.confirmButton.parentNode.insertBefore(j.confirmButton,j.cancelButton);var c=function(e,t){for(var n=$(T.focusCancel),o=0;o<n.length;o++)return(e+=t)===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus();j.popup.focus()};ce.keydownHandlerAdded&&(ce.keydownTarget.removeEventListener("keydown",ce.keydownHandler,{capture:ce.keydownListenerCapture}),ce.keydownHandlerAdded=!1),T.toast||(ce.keydownHandler=function(e){return function(e,t){if(t.stopKeydownPropagation&&e.stopPropagation(),"Enter"!==e.key||e.isComposing)if("Tab"===e.key){for(var n=e.target,o=$(t.focusCancel),r=-1,i=0;i<o.length;i++)if(n===o[i]){r=i;break}e.shiftKey?c(r,-1):c(r,1),e.stopPropagation(),e.preventDefault()}else-1!==["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"].indexOf(e.key)?document.activeElement===j.confirmButton&&K(j.cancelButton)?j.cancelButton.focus():document.activeElement===j.cancelButton&&K(j.confirmButton)&&j.confirmButton.focus():"Escape"!==e.key&&"Esc"!==e.key||!0!==M(t.allowEscapeKey)||s(q.DismissReason.esc);else if(e.target&&L.getInput()&&e.target.outerHTML===L.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(t.input))return;q.clickConfirm(),e.preventDefault()}}(e,T)},ce.keydownTarget=T.keydownListenerCapture?window:j.popup,ce.keydownListenerCapture=T.keydownListenerCapture,ce.keydownTarget.addEventListener("keydown",ce.keydownHandler,{capture:ce.keydownListenerCapture}),ce.keydownHandlerAdded=!0),L.enableButtons(),L.hideLoading(),L.resetValidationError(),T.toast&&(T.input||T.footer||T.showCloseButton)?D(document.body,I["toast-column"]):N(document.body,I["toast-column"]);for(var d,p,f=["input","file","range","select","radio","checkbox","textarea"],m=0;m<f.length;m++){var h=I[f[m]],g=W(j.content,h);if(d=L.getInput(f[m])){for(var b in d.attributes)if(d.attributes.hasOwnProperty(b)){var y=d.attributes[b].name;"type"!==y&&"value"!==y&&d.removeAttribute(y)}for(var v in T.inputAttributes)d.setAttribute(v,T.inputAttributes[v])}g.className=h,T.inputClass&&D(g,T.inputClass),U(g)}switch(T.input){case"text":case"email":case"password":case"number":case"tel":case"url":(d=W(j.content,I.input)).value=T.inputValue,d.placeholder=T.inputPlaceholder,d.type=T.input,z(d);break;case"file":(d=W(j.content,I.file)).placeholder=T.inputPlaceholder,d.type=T.input,z(d);break;case"range":var w=W(j.content,I.range),C=w.querySelector("input"),k=w.querySelector("output");C.value=T.inputValue,C.type=T.input,k.value=T.inputValue,z(w);break;case"select":var x=W(j.content,I.select);if(x.innerHTML="",T.inputPlaceholder){var A=document.createElement("option");A.innerHTML=T.inputPlaceholder,A.value="",A.disabled=!0,A.selected=!0,x.appendChild(A)}p=function(e){e.forEach(function(e){var t=e[0],n=e[1],o=document.createElement("option");o.value=t,o.innerHTML=n,T.inputValue.toString()===t.toString()&&(o.selected=!0),x.appendChild(o)}),z(x),x.focus()};break;case"radio":var B=W(j.content,I.radio);B.innerHTML="",p=function(e){e.forEach(function(e){var t=e[0],n=e[1],o=document.createElement("input"),r=document.createElement("label");o.type="radio",o.name=I.radio,o.value=t,T.inputValue.toString()===t.toString()&&(o.checked=!0);var i=document.createElement("span");i.innerHTML=n,i.className=I.label,r.appendChild(o),r.appendChild(i),B.appendChild(r)}),z(B);var t=B.querySelectorAll("input");t.length&&t[0].focus()};break;case"checkbox":var P=W(j.content,I.checkbox),S=L.getInput("checkbox");S.type="checkbox",S.value=1,S.id=I.checkbox,S.checked=Boolean(T.inputValue),P.querySelector("span").innerHTML=T.inputPlaceholder,z(P);break;case"textarea":var E=W(j.content,I.textarea);E.value=T.inputValue,E.placeholder=T.inputPlaceholder,z(E);break;case null:break;default:R('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(T.input,'"'))}if("select"===T.input||"radio"===T.input){var O=function(e){return p((t=e,n=[],"undefined"!=typeof Map&&t instanceof Map?t.forEach(function(e,t){n.push([t,e])}):Object.keys(t).forEach(function(e){n.push([e,t[e]])}),n));var t,n};H(T.inputOptions)?(q.showLoading(),T.inputOptions.then(function(e){L.hideLoading(),O(e)})):"object"===V(T.inputOptions)?O(T.inputOptions):R("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(V(T.inputOptions)))}else-1!==["text","email","number","tel","textarea"].indexOf(T.input)&&H(T.inputValue)&&(q.showLoading(),U(d),T.inputValue.then(function(e){d.value="number"===T.input?parseFloat(e)||0:e+"",z(d),d.focus(),L.hideLoading()}).catch(function(e){R("Error in inputValue promise: "+e),d.value="",z(d),d.focus(),L.hideLoading()}));Se(T),T.toast||(M(T.allowEnterKey)?T.focusCancel&&K(j.cancelButton)?j.cancelButton.focus():T.focusConfirm&&K(j.confirmButton)?j.confirmButton.focus():c(-1,1):document.activeElement&&document.activeElement.blur()),j.container.scrollTop=0})}});function Le(){if("undefined"!=typeof window){"undefined"==typeof Promise&&R("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)");for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return R("At least 1 argument is expected!"),!1;Ee=this;var o=Object.freeze(this.constructor.argsToParams(t));Object.defineProperties(this,{params:{value:o,writable:!1,enumerable:!0}});var r=this._main(this.params);xe.promise.set(this,r)}}Le.prototype.then=function(e,t){return xe.promise.get(this).then(e,t)},Le.prototype.catch=function(e){return xe.promise.get(this).catch(e)},Le.prototype.finally=function(e){return xe.promise.get(this).finally(e)},i(Le.prototype,Oe),i(Le,we),Object.keys(Oe).forEach(function(t){Le[t]=function(){var e;if(Ee)return(e=Ee)[t].apply(e,arguments)}}),Le.DismissReason=e,Le.noop=function(){},Le.version="7.26.27";var Te,je,qe=ue((Te=Le,je=function(e){function t(){return c(this,t),d(this,s(t).apply(this,arguments))}return a(t,Te),r(t,[{key:"_main",value:function(e){return p(s(t.prototype),"_main",this).call(this,i({},be,e))}}],[{key:"setDefaults",value:function(t){if(h(ge),!t||"object"!==V(t))throw new TypeError("SweetAlert2: The argument for setDefaults() is required and has to be a object");he(t),Object.keys(t).forEach(function(e){Te.isValidParameter(e)&&(be[e]=t[e])})}},{key:"resetDefaults",value:function(){h(ge),be={}}}]),t}(),"undefined"!=typeof window&&"object"===V(window._swalDefaults)&&je.setDefaults(window._swalDefaults),je));return qe.default=qe}),"undefined"!=typeof window&&window.Sweetalert2&&(window.swal=window.sweetAlert=window.Swal=window.SweetAlert=window.Sweetalert2); | ||
| 2 | "undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,"@-webkit-keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}body.swal2-toast-shown .swal2-container{position:fixed;background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-shown{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validationerror{font-size:1em}.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;box-shadow:0 0 .625em #d9d9d9;overflow-y:hidden}.swal2-popup.swal2-toast .swal2-header{flex-direction:row}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:initial;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon-text{font-size:2em;font-weight:700;line-height:1em}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 .0625em #fff,0 0 0 .125em rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:2em;height:2.8125em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.25em;left:-.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:2em 2em;transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;-webkit-transform-origin:0 2em;transform-origin:0 2em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:showSweetToast .5s;animation:showSweetToast .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:hideSweetToast .2s forwards;animation:hideSweetToast .2s forwards}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:animate-toast-success-tip .75s;animation:animate-toast-success-tip .75s}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:animate-toast-success-long .75s;animation:animate-toast-success-long .75s}@-webkit-keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@-webkit-keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes animate-toast-success-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes animate-toast-success-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-shown{top:auto;right:auto;bottom:auto;left:auto;background-color:transparent}body.swal2-no-backdrop .swal2-shown>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-shown.swal2-top{top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-top-left,body.swal2-no-backdrop .swal2-shown.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-top-end,body.swal2-no-backdrop .swal2-shown.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-shown.swal2-center{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-left,body.swal2-no-backdrop .swal2-shown.swal2-center-start{top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-end,body.swal2-no-backdrop .swal2-shown.swal2-center-right{top:50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom{bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom-left,body.swal2-no-backdrop .swal2-shown.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-bottom-end,body.swal2-no-backdrop .swal2-shown.swal2-bottom-right{right:0;bottom:0}.swal2-container{display:flex;position:fixed;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:10px;background-color:transparent;z-index:1060;overflow-x:hidden;-webkit-overflow-scrolling:touch}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:c���zAV ���zAV ��zAV @��zAV X��zAV ��zAV �3 ��zAV ainer.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-container.swal2-fade{transition:background-color .1s}.swal2-container.swal2-shown{background-color:rgba(0,0,0,.4)}.swal2-popup{display:none;position:relative;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem;box-sizing:border-box}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-popup .swal2-header{display:flex;flex-direction:column;align-items:center}.swal2-popup .swal2-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-popup .swal2-actions{align-items:center;justify-content:center;margin:1.25em auto 0;z-index:1}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-confirm{width:2.5em;height:2.5em;margin:.46875em;padding:0;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent;cursor:default;box-sizing:border-box;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-popup .swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{display:inline-block;width:15px;height:15px;margin-left:5px;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff;content:'';-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal}.swal2-popup .swal2-styled{margin:0 .3125em;padding:.625em 2em;font-weight:500;box-shadow:none}.swal2-popup .swal2-styled:not([disabled]){cursor:pointer}.swal2-popup .swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.swal2-popup .swal2-styled::-moz-focus-inner{border:0}.swal2-popup .swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-popup .swal2-image{max-width:100%;margin:1.25em auto}.swal2-popup .swal2-close{position:absolute;top:0;right:0;justify-content:center;width:1.2em;height:1.2em;padding:0;transition:color .1s ease-out;border:none;border-radius:0;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer;overflow:hidden}.swal2-popup .swal2-close:hover{-webkit-transform:none;transform:none;color:#f27474}.swal2-popup>.swal2-checkbox,.swal2-popup>.swal2-file,.swal2-popup>.swal2-input,.swal2-popup>.swal2-radio,.swal2-popup>.swal2-select,.swal2-popup>.swal2-textarea{display:none}.swal2-popup .swal2-content{justify-content:center;margin:0;padding:0;color:#545454;font-size:1.125em;font-weight:300;line-height:normal;z-index:1;word-wrap:break-word}.swal2-popup #swal2-content{text-align:center}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-radio,.swal2-popup .swal2-select,.swal2-popup .swal2-textarea{margin:1em auto}.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-textarea{width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;font-size:1.125em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);box-sizing:border-box}.swal2-popup .swal2-file.swal2-inputerror,.swal2-popup .swal2-input.swal2-inputerror,.swal2-popup .swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-popup .swal2-file:focus,.swal2-popup .swal2-input:focus,.swal2-popup .swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-popup .swal2-file::-webkit-input-placeholder,.swal2-popup .swal2-input::-webkit-input-placeholder,.swal2-popup .swal2-textarea::-webkit-input-placeholder{color:#ccc}.swal2-popup .swal2-file:-ms-input-placeholder,.swal2-popup .swal2-input:-ms-input-placeholder,.swal2-popup .swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::-ms-input-placeholder,.swal2-popup .swal2-input::-ms-input-placeholder,.swal2-popup .swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::placeholder,.swal2-popup .swal2-input::placeholder,.swal2-popup .swal2-textarea::placeholder{color:#ccc}.swal2-popup .swal2-range input{width:80%}.swal2-popup .swal2-range output{width:20%;font-weight:600;text-align:center}.swal2-popup .swal2-range input,.swal2-popup .swal2-range output{height:2.625em;margin:1em auto;padding:0;font-size:1.125em;line-height:2.625em}.swal2-popup .swal2-input{height:2.625em;padding:0 .75em}.swal2-popup .swal2-input[type=number]{max-width:10em}.swal2-popup .swal2-file{font-size:1.125em}.swal2-popup .swal2-textarea{height:6.75em;padding:.75em}.swal2-popup .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;color:#545454;font-size:1.125em}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-radio{align-items:center;justify-content:center}.swal2-popup .swal2-checkbox label,.swal2-popup .swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-popup .swal2-checkbox input,.swal2-popup .swal2-radio input{margin:0 .4em}.swal2-popup .swal2-validationerror{display:none;align-items:center;justify-content:center;padding:.625em;background:#f0f0f0;color:#666;font-size:1em;font-weight:300;overflow:hidden}.swal2-popup .swal2-validationerror::before{display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center;content:'!';zoom:normal}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}.swal2-icon{position:relative;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;line-height:5em;cursor:default;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;zoom:normal}.swal2-icon-text{font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:3.75em 3.75em;transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 3.75em;transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;top:-.25em;left:-.25em;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%;z-index:2;box-sizing:content-box}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;top:.5em;left:1.625em;width:.4375em;height:5.625em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);z-index:1}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;height:.3125em;border-radius:.125em;background-color:#a5dc86;z-index:2}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.875em;width:1.5625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-progresssteps{align-items:center;margin:0 0 1.25em;padding:0;font-weight:600}.swal2-progresssteps li{display:inline-block;position:relative}.swal2-progresssteps .swal2-progresscircle{width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center;z-index:20}.swal2-progresssteps .swal2-progresscircle:first-child{margin-left:0}.swal2-progresssteps .swal2-progresscircle:last-child{margin-right:0}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep{background:#3085d6}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep~.swal2-progresscircle{background:#add8e6}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep~.swal2-progressline{background:#add8e6}.swal2-progresssteps .swal2-progressline{width:2.5em;height:.4em;margin:0 -1px;background:#3085d6;z-index:10}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-show.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-hide.swal2-noanimation{-webkit-animation:none;animation:none}[dir=rtl] .swal2-close{right:auto;left:0}.swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-animate-success-icon .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-animate-error-icon{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-animate-error-icon .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}@-webkit-keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"); | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | jQuery(function($){ | ||
| 2 | /* | ||
| 3 | * Select/Upload image(s) event | ||
| 4 | */ | ||
| 5 | $('body').on('click', '.misha_upload_image_button', function(e){ | ||
| 6 | e.preventDefault(); | ||
| 7 | |||
| 8 | var button = $(this), | ||
| 9 | custom_uploader = wp.media({ | ||
| 10 | title: 'Insert image', | ||
| 11 | library : { | ||
| 12 | // uncomment the next line if you want to attach image to the current post | ||
| 13 | // uploadedTo : wp.media.view.settings.post.id, | ||
| 14 | type : 'image' | ||
| 15 | }, | ||
| 16 | button: { | ||
| 17 | text: 'Use this image' // button label text | ||
| 18 | }, | ||
| 19 | multiple: false // for multiple image selection set to true | ||
| 20 | }).on('select', function() { // it also has "open" and "close" events | ||
| 21 | var attachment = custom_uploader.state().get('selection').first().toJSON(); | ||
| 22 | $(button).removeClass('button').html('<img class="true_pre_image" src="' + attachment.url + '" style="max-width:100px;height:100px;display:block;" />').next().val(attachment.id).next().show(); | ||
| 23 | jQuery(".hidden_img").val(attachment.url); | ||
| 24 | /* if you sen multiple to true, here is some code for getting the image IDs | ||
| 25 | var attachments = frame.state().get('selection'), | ||
| 26 | attachment_ids = new Array(), | ||
| 27 | i = 0; | ||
| 28 | attachments.each(function(attachment) { | ||
| 29 | attachment_ids[i] = attachment['id']; | ||
| 30 | console.log( attachment ); | ||
| 31 | i++; | ||
| 32 | }); | ||
| 33 | */ | ||
| 34 | }) | ||
| 35 | .open(); | ||
| 36 | }); | ||
| 37 | |||
| 38 | $('body').on('click', '.misha_upload_image_button_failer', function(e){ | ||
| 39 | e.preventDefault(); | ||
| 40 | |||
| 41 | var button = $(this), | ||
| 42 | custom_uploader = wp.media({ | ||
| 43 | title: 'Insert image', | ||
| 44 | library : { | ||
| 45 | // uncomment the next line if you want to attach image to the current post | ||
| 46 | // uploadedTo : wp.media.view.settings.post.id, | ||
| 47 | type : 'image' | ||
| 48 | }, | ||
| 49 | button: { | ||
| 50 | text: 'Use this image' // button label text | ||
| 51 | }, | ||
| 52 | multiple: false // for multiple image selection set to true | ||
| 53 | }).on('select', function() { // it also has "open" and "close" events | ||
| 54 | var attachment = custom_uploader.state().get('selection').first().toJSON(); | ||
| 55 | $(button).removeClass('button').html('<img class="true_pre_image" src="' + attachment.url + '" style="max-width:100px;height:100px;display:block;" />').next().val(attachment.id).next().show(); | ||
| 56 | jQuery(".failure_hidden_img").val(attachment.url); | ||
| 57 | /* if you sen multiple to true, here is some code for getting the image IDs | ||
| 58 | var attachments = frame.state().get('selection'), | ||
| 59 | attachment_ids = new Array(), | ||
| 60 | i = 0; | ||
| 61 | attachments.each(function(attachment) { | ||
| 62 | attachment_ids[i] = attachment['id']; | ||
| 63 | console.log( attachment ); | ||
| 64 | i++; | ||
| 65 | }); | ||
| 66 | */ | ||
| 67 | }) | ||
| 68 | .open(); | ||
| 69 | }); | ||
| 70 | |||
| 71 | /* | ||
| 72 | * Remove image event | ||
| 73 | */ | ||
| 74 | $('body').on('click', '.misha_remove_image_button', function(){ | ||
| 75 | $(this).hide().prev().val('').prev().addClass('button').html('Upload image'); | ||
| 76 | return false; | ||
| 77 | }); | ||
| 78 | |||
| 79 | }); |
| 1 | <?php | ||
| 2 | |||
| 3 | if (!defined('ABSPATH')) | ||
| 4 | exit; | ||
| 5 | |||
| 6 | if (!class_exists('CF7POPUP_menu')) { | ||
| 7 | |||
| 8 | class CF7POPUP_menu { | ||
| 9 | |||
| 10 | protected static $instance; | ||
| 11 | |||
| 12 | function CF7POPUP_wpcf7_editor_panels( $panels ) { | ||
| 13 | $panels_popup = array( | ||
| 14 | 'popup-panel' => array( | ||
| 15 | 'title' => __( 'Popup Setting', 'contact-form-7' ), | ||
| 16 | 'callback' => array( $this, 'CF7POPUP_wpcf7_editor_panel_popup'), | ||
| 17 | ), | ||
| 18 | ); | ||
| 19 | $panels = array_merge($panels,$panels_popup); | ||
| 20 | return $panels; | ||
| 21 | } | ||
| 22 | |||
| 23 | |||
| 24 | function CF7POPUP_wpcf7_editor_panel_popup() { | ||
| 25 | $formid = $_REQUEST['post']; | ||
| 26 | // POPUP ADMINPANEL FORMAT | ||
| 27 | ?> | ||
| 28 | <h2>Success Message Settings</h2> | ||
| 29 | <fieldset> | ||
| 30 | <legend>You can Enable/Disable this Form popup and also you can other setting related to popup.</legend> | ||
| 31 | <p> | ||
| 32 | <label> | ||
| 33 | |||
| 34 | <input type="checkbox" name="enabled_popup_val" value="popupenable" <?php if (isset($_REQUEST['post'])){if (get_post_meta( $formid, 'enabled-popup', true ) == $formid) {echo ' checked="checked"';}} ?>>Enable/Disable this Form popup | ||
| 35 | </label> | ||
| 36 | </p> | ||
| 37 | |||
| 38 | <table class="form-table tbl_main"> | ||
| 39 | |||
| 40 | <tbody> | ||
| 41 | |||
| 42 | <tr> | ||
| 43 | <th scope="row"> | ||
| 44 | <label>Popup Text</label> | ||
| 45 | </th> | ||
| 46 | <td> | ||
| 47 | <input type="text" name="popup_message" class="regular-text" id="popup_message" value="<?php echo get_post_meta( $formid, 'popup_message', true );?>"> | ||
| 48 | </td> | ||
| 49 | </tr> | ||
| 50 | <tr> | ||
| 51 | <th scope="row"> | ||
| 52 | <label>Popup Width</label> | ||
| 53 | </th> | ||
| 54 | <td> | ||
| 55 | <input type="text" name="m_popup_width" class="small-text" value="<?php echo get_post_meta( $formid, 'm_popup_width', true );?>"> | ||
| 56 | <span class="description">Value must be like: 500px / auto / 50%</span> | ||
| 57 | </td> | ||
| 58 | </tr> | ||
| 59 | <tr> | ||
| 60 | <th scope="row"> | ||
| 61 | <label>Popup Border Radius</label> | ||
| 62 | </th> | ||
| 63 | <td> | ||
| 64 | <input type="number" name="m_popup_radius" class="small-text" value="<?php echo get_post_meta( $formid, 'm_popup_radius', true );?>"> | ||
| 65 | |||
| 66 | </td> | ||
| 67 | </tr> | ||
| 68 | <tr> | ||
| 69 | <th scope="row"> | ||
| 70 | <label>Auto Hide after</label> | ||
| 71 | </th> | ||
| 72 | <td> | ||
| 73 | <input type="text" name="m_popup_duration" class="medium-text" value="<?php echo get_post_meta( $formid, 'm_popup_duration', true );?>"> | ||
| 74 | <span class="description">Duration in milliseconds eg. 5000 (Popup will hide after 5 Seconds).</span> | ||
| 75 | </td> | ||
| 76 | </tr> | ||
| 77 | <tr> | ||
| 78 | <th scope="row"> | ||
| 79 | <label>Select Template</label> | ||
| 80 | </th> | ||
| 81 | <td> | ||
| 82 | |||
| 83 | <?php | ||
| 84 | if(empty(get_post_meta( $formid, 'popup_templet', true ))){ | ||
| 85 | $templet_sel = 'templet1'; | ||
| 86 | } else { | ||
| 87 | $templet_sel = get_post_meta( $formid, 'popup_templet', true ); | ||
| 88 | } | ||
| 89 | ?> | ||
| 90 | <input type="radio" id="t1" name="popup_templet" value="templet1" <?php if($templet_sel == 'templet1'){echo "checked";} ?>><label for="t1">Template 1</label> | ||
| 91 | |||
| 92 | <input type="radio" id="t2" name="popup_templet" value="templet2" <?php if($templet_sel == 'templet2'){echo "checked";}?>><label for="t2">Template 2</label> | ||
| 93 | |||
| 94 | <input type="radio" id="t3" name="popup_templet" value="templet3" <?php if($templet_sel == 'templet3'){echo "checked";}?>><label for="t3">Template 3</label> | ||
| 95 | |||
| 96 | <input type="radio" id="t4" name="popup_templet" value="templet4" <?php if($templet_sel == 'templet4'){echo "checked";}?>><label for="t4">Template 4</label> | ||
| 97 | |||
| 98 | <input type="radio" id="t5" name="popup_templet" value="templet5" <?php if($templet_sel == 'templet5'){echo "checked";}?>><label for="t5">Template 5</label> | ||
| 99 | |||
| 100 | <input type="radio" id="ct" name="popup_templet" value="custom_templet" <?php if($templet_sel == 'custom_templet'){echo "checked";}?>><label for="ct">Custom Template (<a href="https://www.xeeshop.com/#pricing" target="_blank">Go Pro</a>)</label> | ||
| 101 | |||
| 102 | </td> | ||
| 103 | </tr> | ||
| 104 | <tr class="custom_templet_1"> | ||
| 105 | <th scope="row" colspan="2"> | ||
| 106 | <label>Template 1 :</label> | ||
| 107 | </th> | ||
| 108 | </tr> | ||
| 109 | <tr class="custom_templet_1"> | ||
| 110 | <th scope="row"> | ||
| 111 | </th> | ||
| 112 | <td> | ||
| 113 | <img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/theme_1.png'); ?>"/> | ||
| 114 | </td> | ||
| 115 | </tr> | ||
| 116 | <tr class="custom_templet_2"> | ||
| 117 | <th scope="row" colspan="2"> | ||
| 118 | <label>Template 2 :</label> | ||
| 119 | </th> | ||
| 120 | </tr> | ||
| 121 | <tr class="custom_templet_2"> | ||
| 122 | <th scope="row"> | ||
| 123 | </th> | ||
| 124 | <td> | ||
| 125 | <img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/theme_2.png'); ?>"/> | ||
| 126 | </td> | ||
| 127 | </tr> | ||
| 128 | <tr class="custom_templet_3"> | ||
| 129 | <th scope="row" colspan="2"> | ||
| 130 | <label>Template 3 :</label> | ||
| 131 | </th> | ||
| 132 | </tr> | ||
| 133 | <tr class="custom_templet_3"> | ||
| 134 | <th scope="row"> | ||
| 135 | </th> | ||
| 136 | <td> | ||
| 137 | <img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/theme_3.png'); ?>"/> | ||
| 138 | </td> | ||
| 139 | </tr> | ||
| 140 | <tr class="custom_templet_4"> | ||
| 141 | <th scope="row" colspan="2"> | ||
| 142 | <label>Template 4 :</label> | ||
| 143 | </th> | ||
| 144 | </tr> | ||
| 145 | <tr class="custom_templet_4"> | ||
| 146 | <th scope="row"> | ||
| 147 | </th> | ||
| 148 | <td> | ||
| 149 | <img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/theme_4.png'); ?>"/> | ||
| 150 | </td> | ||
| 151 | </tr> | ||
| 152 | <tr class="custom_templet_5"> | ||
| 153 | <th scope="row" colspan="2"> | ||
| 154 | <label>Template 5 :</label> | ||
| 155 | </th> | ||
| 156 | </tr> | ||
| 157 | <tr class="custom_templet_5"> | ||
| 158 | <th scope="row"> | ||
| 159 | </th> | ||
| 160 | <td> | ||
| 161 | <img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/theme_5.png'); ?>"/> | ||
| 162 | </td> | ||
| 163 | </tr> | ||
| 164 | <tr class="tr_custom_templet failure_popup"> | ||
| 165 | <th scope="row" colspan="2"> | ||
| 166 | <label>Select Popup Background :</label> | ||
| 167 | </th> | ||
| 168 | </tr> | ||
| 169 | <tr class="tr_custom_templet failure_popup"> | ||
| 170 | <th scope="row"> | ||
| 171 | </th> | ||
| 172 | <td> | ||
| 173 | <table class="tbl_child"> | ||
| 174 | <tr> | ||
| 175 | <td> | ||
| 176 | <label> | ||
| 177 | <input type="radio" name="popup_background_option" value="bg_color" <?php echo "checked"; ?>>Background Color | ||
| 178 | </label> | ||
| 179 | </td> | ||
| 180 | <td> | ||
| 181 | <input class="jscolor" name="popup_background_color" value="<?php echo get_post_meta( $formid, 'popup_background_color', true );?>"> | ||
| 182 | </td> | ||
| 183 | </tr> | ||
| 184 | <tr> | ||
| 185 | <td> | ||
| 186 | <label> | ||
| 187 | <input type="radio" name="popup_background_option" value="image">Background Image | ||
| 188 | </label> | ||
| 189 | </td> | ||
| 190 | <td> | ||
| 191 | <?php | ||
| 192 | echo $this->CF7POPUP_image_uploader_field( 'image1', get_post_meta($formid, 'hidden_img_count', true ) ); | ||
| 193 | ?> | ||
| 194 | </td> | ||
| 195 | <td> | ||
| 196 | <?php if(!empty(get_post_meta($formid, 'popup_image_color', true ))){ ?> | ||
| 197 | <img src="<?php echo get_post_meta($formid, 'popup_image_color', true ); ?>" width="50px" height="50px"> | ||
| 198 | <?php } ?> | ||
| 199 | <input type="hidden" name="popup_image_color" class="hidden_img" > | ||
| 200 | </td> | ||
| 201 | </tr> | ||
| 202 | <tr> | ||
| 203 | <td> | ||
| 204 | <label> | ||
| 205 | <input type="radio" name="popup_background_option" value="gradient_color">Gradient Color | ||
| 206 | </label> | ||
| 207 | </td> | ||
| 208 | <td> | ||
| 209 | <input class="jscolor" name="popup_gradient_color" value=""> | ||
| 210 | </td> | ||
| 211 | <td> | ||
| 212 | <input class="jscolor gra_box" name="popup_gradient_color1" value=""> | ||
| 213 | </td> | ||
| 214 | </tr> | ||
| 215 | <tr> | ||
| 216 | <td> | ||
| 217 | <label>Popup Text Color</label> | ||
| 218 | </td> | ||
| 219 | <td> | ||
| 220 | <input class="jscolor" name="popup_text_color" id="popup_text_color" value=""> | ||
| 221 | </td> | ||
| 222 | </tr> | ||
| 223 | <tr> | ||
| 224 | <td> | ||
| 225 | <label>Button background color</label> | ||
| 226 | </td> | ||
| 227 | <td> | ||
| 228 | <input class="jscolor" name="popup_button_background_color" value=""> | ||
| 229 | </td> | ||
| 230 | </tr> | ||
| 231 | |||
| 232 | </table> | ||
| 233 | </td> | ||
| 234 | </tr> | ||
| 235 | <tr class="failure_popup"> | ||
| 236 | <th scope="row"> | ||
| 237 | <label>Button Text</label> | ||
| 238 | </th> | ||
| 239 | <td> | ||
| 240 | <input type="text" name="popup_button_text" class="regular-text" value="ok"> | ||
| 241 | </td> | ||
| 242 | </tr> | ||
| 243 | <tr><td><a href="https://www.xeeshop.com/#pricing" target="_blank">Go Pro</a></td></tr> | ||
| 244 | </tbody> | ||
| 245 | </table> | ||
| 246 | </fieldset> | ||
| 247 | <h2>Failure message Settings <a href="https://www.xeeshop.com/#pricing" target="_blank">Go Pro</a></h2> | ||
| 248 | <fieldset class="failure_popup"> | ||
| 249 | <legend>You can Enable/Disable this Failure popup and also you can you other setting related to Failure popup.</legend> | ||
| 250 | <p> | ||
| 251 | <label> | ||
| 252 | |||
| 253 | <input type="checkbox" name="enabled_failure_popup_val" value="failurepopupenable" <?php if (isset($_REQUEST['post'])){if (get_post_meta( $formid, 'enabled-popup-failure', true ) == $formid) {echo ' checked="checked"';}} ?>>Enable/Disable this Failure popup | ||
| 254 | </label> | ||
| 255 | </p> | ||
| 256 | <table class="form-table"> | ||
| 257 | <tbody> | ||
| 258 | <tr> | ||
| 259 | <th scope="row"> | ||
| 260 | <label>Failure Popup Width</label> | ||
| 261 | </th> | ||
| 262 | <td> | ||
| 263 | <input type="text" name="failure_popup_width" class="small-text" value="<?php echo get_post_meta( $formid, 'failure_popup_width', true );?>"> | ||
| 264 | <span class="description">Value must be like: 500px / auto / 50%</span> | ||
| 265 | </td> | ||
| 266 | </tr> | ||
| 267 | <tr> | ||
| 268 | <th scope="row"> | ||
| 269 | <label>failure Popup Border Radius</label> | ||
| 270 | </th> | ||
| 271 | <td> | ||
| 272 | <input type="number" name="failure_popup_radius" class="small-text" value="<?php echo get_post_meta( $formid, 'failure_popup_radius', true );?>"> | ||
| 273 | |||
| 274 | </td> | ||
| 275 | </tr> | ||
| 276 | <tr> | ||
| 277 | <th scope="row"> | ||
| 278 | <label>Auto Hide after(Failure)</label> | ||
| 279 | </th> | ||
| 280 | <td> | ||
| 281 | <input type="text" name="failure_popup_duration" class="medium-text" value="<?php echo get_post_meta( $formid, 'failure_popup_duration', true );?>"> | ||
| 282 | <span class="description">Duration in milliseconds eg. 5000 (Popup will hide after 5 Seconds).</span> | ||
| 283 | </td> | ||
| 284 | </tr> | ||
| 285 | <tr> | ||
| 286 | <th scope="row"> | ||
| 287 | <label>Select Template</label> | ||
| 288 | </th> | ||
| 289 | <td> | ||
| 290 | |||
| 291 | <?php | ||
| 292 | if(empty(get_post_meta( $formid, 'failure_popup_templet', true ))){ | ||
| 293 | $templet_sel = 'templet1'; | ||
| 294 | } else { | ||
| 295 | $templet_sel = get_post_meta( $formid, 'failure_popup_templet', true ); | ||
| 296 | } | ||
| 297 | ?> | ||
| 298 | <input type="radio" id="fpt1" name="failure_popup_templet" value="templet1" <?php if($templet_sel == 'templet1'){echo "checked";} ?>><label for="fpt1">Template 1</label> | ||
| 299 | <input type="radio" id="fpt2" name="failure_popup_templet" value="templet2" <?php if($templet_sel == 'templet2'){echo "checked";}?>><label for="fpt2">Template 2</label> | ||
| 300 | <input type="radio" id="fpt3" name="failure_popup_templet" value="templet3" <?php if($templet_sel == 'templet3'){echo "checked";}?>><label for="fpt3">Template 3</label> | ||
| 301 | <input type="radio" id="fpt4" name="failure_popup_templet" value="templet4" <?php if($templet_sel == 'templet4'){echo "checked";}?>><label for="fpt4">Template 4</label> | ||
| 302 | <input type="radio" id="fpt5" name="failure_popup_templet" value="templet5" <?php if($templet_sel == 'templet5'){echo "checked";}?>><label for="fpt5">Template 5</label> | ||
| 303 | <input type="radio" id="fptct" name="failure_popup_templet" value="custom_templet" <?php if($templet_sel == 'custom_templet'){echo "checked";}?>><label for="fptct">Custom Template</label> | ||
| 304 | |||
| 305 | </td> | ||
| 306 | </tr> | ||
| 307 | <tr class="failuretr_custom_templet_1"> | ||
| 308 | <th scope="row" colspan="2"> | ||
| 309 | <label>Template 1 :</label> | ||
| 310 | </th> | ||
| 311 | </tr> | ||
| 312 | <tr class="failuretr_custom_templet_1"> | ||
| 313 | <th scope="row"> | ||
| 314 | </th> | ||
| 315 | <td> | ||
| 316 | <img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/f_theme_1.png'); ?>"/> | ||
| 317 | </td> | ||
| 318 | </tr> | ||
| 319 | <tr class="failuretr_custom_templet_2"> | ||
| 320 | <th scope="row" colspan="2"> | ||
| 321 | <label>Template 2 :</label> | ||
| 322 | </th> | ||
| 323 | </tr> | ||
| 324 | <tr class="failuretr_custom_templet_2"> | ||
| 325 | <th scope="row"> | ||
| 326 | </th> | ||
| 327 | <td> | ||
| 328 | <img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/f_theme_2.png'); ?>"/> | ||
| 329 | </td> | ||
| 330 | </tr> | ||
| 331 | <tr class="failuretr_custom_templet_3"> | ||
| 332 | <th scope="row" colspan="2"> | ||
| 333 | <label>Template 3 :</label> | ||
| 334 | </th> | ||
| 335 | </tr> | ||
| 336 | <tr class="failuretr_custom_templet_3"> | ||
| 337 | <th scope="row"> | ||
| 338 | </th> | ||
| 339 | <td> | ||
| 340 | <img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/f_theme_3.png'); ?>"/> | ||
| 341 | </td> | ||
| 342 | </tr> | ||
| 343 | <tr class="failuretr_custom_templet_4"> | ||
| 344 | <th scope="row" colspan="2"> | ||
| 345 | <label>Template 4 :</label> | ||
| 346 | </th> | ||
| 347 | </tr> | ||
| 348 | <tr class="failuretr_custom_templet_4"> | ||
| 349 | <th scope="row"> | ||
| 350 | </th> | ||
| 351 | <td> | ||
| 352 | <img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/f_theme_4.png'); ?>"/> | ||
| 353 | </td> | ||
| 354 | </tr> | ||
| 355 | <tr class="failuretr_custom_templet_5"> | ||
| 356 | <th scope="row" colspan="2"> | ||
| 357 | <label>Template 5 :</label> | ||
| 358 | </th> | ||
| 359 | </tr> | ||
| 360 | <tr class="failuretr_custom_templet_5"> | ||
| 361 | <th scope="row"> | ||
| 362 | </th> | ||
| 363 | <td> | ||
| 364 | <img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/f_theme_5.png'); ?>"/> | ||
| 365 | </td> | ||
| 366 | </tr> | ||
| 367 | <tr class="failuretr_custom_templet"> | ||
| 368 | <th scope="row" colspan="2"> | ||
| 369 | <label>Select Popup Background :</label> | ||
| 370 | </th> | ||
| 371 | </tr> | ||
| 372 | <tr class="failuretr_custom_templet"> | ||
| 373 | <th scope="row"> | ||
| 374 | </th> | ||
| 375 | <td> | ||
| 376 | <table class="tbl_child"> | ||
| 377 | <tr> | ||
| 378 | <td> | ||
| 379 | <?php | ||
| 380 | if(empty(get_post_meta( $formid, 'failure_popup_background_option', true ))){ | ||
| 381 | $val = 'bg_color'; | ||
| 382 | } else { | ||
| 383 | $val = get_post_meta( $formid, 'failure_popup_background_option', true ); | ||
| 384 | } | ||
| 385 | ?> | ||
| 386 | <label> | ||
| 387 | <input type="radio" name="failure_popup_background_option" value="bg_color" <?php if($val == 'bg_color'){echo "checked";}?>>Background Color | ||
| 388 | </label> | ||
| 389 | </td> | ||
| 390 | <td> | ||
| 391 | <input class="jscolor" name="failure_popup_background_color" value="<?php echo get_post_meta( $formid, 'failure_popup_background_color', true );?>"> | ||
| 392 | </td> | ||
| 393 | </tr> | ||
| 394 | <tr> | ||
| 395 | <td> | ||
| 396 | <label> | ||
| 397 | <input type="radio" name="failure_popup_background_option" value="image" <?php if($val == 'image'){echo "checked";}?>>Background Image | ||
| 398 | </label> | ||
| 399 | </td> | ||
| 400 | <td> | ||
| 401 | <?php | ||
| 402 | echo $this->CF7POPUP_image_uploader_field_failer ( 'image_failure', get_post_meta($formid, 'failure_hidden_img_count', true ) ); | ||
| 403 | ?> | ||
| 404 | </td> | ||
| 405 | <td> | ||
| 406 | <?php if(!empty(get_post_meta($formid, 'failure_popup_image_color', true ))){ ?> | ||
| 407 | <img src="<?php echo get_post_meta($formid, 'failure_popup_image_color', true ); ?>" width="50px" height="50px"> | ||
| 408 | <?php } ?> | ||
| 409 | <input type="hidden" name="failure_popup_image_color" class="failure_hidden_img" > | ||
| 410 | </td> | ||
| 411 | </tr> | ||
| 412 | <tr> | ||
| 413 | <td> | ||
| 414 | <label> | ||
| 415 | <input type="radio" name="failure_popup_background_option" value="gradient_color" <?php if($val == 'gradient_color'){echo "checked";}?>>Gradient Color | ||
| 416 | </label> | ||
| 417 | </td> | ||
| 418 | <td> | ||
| 419 | <input class="jscolor" name="failure_popup_gradient_color" value="<?php echo get_post_meta( $formid, 'failure_popup_gradient_color', true );?>"> | ||
| 420 | </td> | ||
| 421 | <td> | ||
| 422 | <input class="jscolor gra_box" name="failure_popup_gradient_color1" value="<?php echo get_post_meta( $formid, 'failure_popup_gradient_color1', true );?>"> | ||
| 423 | </td> | ||
| 424 | </tr> | ||
| 425 | <tr> | ||
| 426 | <td> | ||
| 427 | <label>Failure Popup Text Color</label> | ||
| 428 | </td> | ||
| 429 | <td> | ||
| 430 | <input class="jscolor" name="failure_popup_text_color" id="failure_popup_text_color" value="<?php echo get_post_meta( $formid, 'failure_popup_text_color', true );?>"> | ||
| 431 | </td> | ||
| 432 | </tr> | ||
| 433 | <tr> | ||
| 434 | <td> | ||
| 435 | <label>Button background color</label> | ||
| 436 | </td> | ||
| 437 | <td> | ||
| 438 | <input class="jscolor" name="failure_popup_button_background_color" value="<?php echo get_post_meta( $formid, 'failure_popup_button_background_color', true );?>"> | ||
| 439 | </td> | ||
| 440 | </tr> | ||
| 441 | |||
| 442 | </table> | ||
| 443 | </td> | ||
| 444 | </tr> | ||
| 445 | <tr > | ||
| 446 | <th scope="row"> | ||
| 447 | <label>Failure Button Text</label> | ||
| 448 | </th> | ||
| 449 | <td> | ||
| 450 | <input type="text" name="failure_popup_button_text" class="regular-text" value="<?php echo get_post_meta( $formid, 'failure_popup_button_text', true );?>"> | ||
| 451 | </td> | ||
| 452 | </tr> | ||
| 453 | </tbody> | ||
| 454 | </table> | ||
| 455 | </fieldset> | ||
| 456 | <?php | ||
| 457 | } | ||
| 458 | |||
| 459 | |||
| 460 | function CF7POPUP_wpcf7_admin_script() { | ||
| 461 | ?> | ||
| 462 | <script type="text/javascript"> | ||
| 463 | jQuery( document ).ready(function() { | ||
| 464 | var radioValue = jQuery("input[name='popup_templet']:checked").val(); | ||
| 465 | if(radioValue == "templet1"){ | ||
| 466 | jQuery('.custom_templet_1').css("display", "table-row"); | ||
| 467 | } | ||
| 468 | if(radioValue == "templet2"){ | ||
| 469 | jQuery('.custom_templet_2').css("display", "table-row"); | ||
| 470 | } | ||
| 471 | if(radioValue == "templet3"){ | ||
| 472 | jQuery('.custom_templet_3').css("display", "table-row"); | ||
| 473 | } | ||
| 474 | if(radioValue == "templet4"){ | ||
| 475 | jQuery('.custom_templet_4').css("display", "table-row"); | ||
| 476 | } | ||
| 477 | if(radioValue == "templet5"){ | ||
| 478 | jQuery('.custom_templet_5').css("display", "table-row"); | ||
| 479 | } | ||
| 480 | if(radioValue == "custom_templet"){ | ||
| 481 | jQuery('.tr_custom_templet').css("display", "table-row"); | ||
| 482 | } | ||
| 483 | |||
| 484 | var f_radioValue = jQuery("input[name='failure_popup_templet']:checked").val(); | ||
| 485 | if(f_radioValue == "templet1"){ | ||
| 486 | jQuery('.failuretr_custom_templet_1').css("display", "table-row"); | ||
| 487 | } | ||
| 488 | if(f_radioValue == "templet2"){ | ||
| 489 | jQuery('.failuretr_custom_templet_2').css("display", "table-row"); | ||
| 490 | } | ||
| 491 | if(f_radioValue == "templet3"){ | ||
| 492 | jQuery('.failuretr_custom_templet_3').css("display", "table-row"); | ||
| 493 | } | ||
| 494 | if(f_radioValue == "templet4"){ | ||
| 495 | jQuery('.failuretr_custom_templet_4').css("display", "table-row"); | ||
| 496 | } | ||
| 497 | if(f_radioValue == "templet5"){ | ||
| 498 | jQuery('.failuretr_custom_templet_5').css("display", "table-row"); | ||
| 499 | } | ||
| 500 | if(f_radioValue == "custom_templet"){ | ||
| 501 | jQuery('.failuretr_custom_templet').css("display", "table-row"); | ||
| 502 | } | ||
| 503 | |||
| 504 | jQuery("input[name='popup_templet']").click(function(){ | ||
| 505 | var radioValue = jQuery("input[name='popup_templet']:checked").val(); | ||
| 506 | if(radioValue == "custom_templet"){ | ||
| 507 | jQuery('.tr_custom_templet').css("display", "table-row"); | ||
| 508 | }else{ | ||
| 509 | jQuery('.tr_custom_templet').css("display", "none"); | ||
| 510 | } | ||
| 511 | |||
| 512 | if(radioValue == "templet1"){ | ||
| 513 | jQuery('.custom_templet_1').css("display", "table-row"); | ||
| 514 | }else{ | ||
| 515 | jQuery('.custom_templet_1').css("display", "none"); | ||
| 516 | } | ||
| 517 | |||
| 518 | if(radioValue == "templet2"){ | ||
| 519 | jQuery('.custom_templet_2').css("display", "table-row"); | ||
| 520 | }else{ | ||
| 521 | jQuery('.custom_templet_2').css("display", "none"); | ||
| 522 | } | ||
| 523 | |||
| 524 | if(radioValue == "templet3"){ | ||
| 525 | jQuery('.custom_templet_3').css("display", "table-row"); | ||
| 526 | }else{ | ||
| 527 | jQuery('.custom_templet_3').css("display", "none"); | ||
| 528 | } | ||
| 529 | |||
| 530 | if(radioValue == "templet4"){ | ||
| 531 | jQuery('.custom_templet_4').css("display", "table-row"); | ||
| 532 | }else{ | ||
| 533 | jQuery('.custom_templet_4').css("display", "none"); | ||
| 534 | } | ||
| 535 | |||
| 536 | if(radioValue == "templet5"){ | ||
| 537 | jQuery('.custom_templet_5').css("display", "table-row"); | ||
| 538 | }else{ | ||
| 539 | jQuery('.custom_templet_5').css("display", "none"); | ||
| 540 | } | ||
| 541 | }); | ||
| 542 | |||
| 543 | jQuery("input[name='failure_popup_templet']").click(function(){ | ||
| 544 | var radioValue = jQuery("input[name='failure_popup_templet']:checked").val(); | ||
| 545 | if(radioValue == "custom_templet"){ | ||
| 546 | jQuery('.failuretr_custom_templet').css("display", "table-row"); | ||
| 547 | }else{ | ||
| 548 | jQuery('.failuretr_custom_templet').css("display", "none"); | ||
| 549 | } | ||
| 550 | |||
| 551 | if(radioValue == "templet1"){ | ||
| 552 | jQuery('.failuretr_custom_templet_1').css("display", "table-row"); | ||
| 553 | }else{ | ||
| 554 | jQuery('.failuretr_custom_templet_1').css("display", "none"); | ||
| 555 | } | ||
| 556 | |||
| 557 | if(radioValue == "templet2"){ | ||
| 558 | jQuery('.failuretr_custom_templet_2').css("display", "table-row"); | ||
| 559 | }else{ | ||
| 560 | jQuery('.failuretr_custom_templet_2').css("display", "none"); | ||
| 561 | } | ||
| 562 | |||
| 563 | if(radioValue == "templet3"){ | ||
| 564 | jQuery('.failuretr_custom_templet_3').css("display", "table-row"); | ||
| 565 | }else{ | ||
| 566 | jQuery('.failuretr_custom_templet_3').css("display", "none"); | ||
| 567 | } | ||
| 568 | |||
| 569 | if(radioValue == "templet4"){ | ||
| 570 | jQuery('.failuretr_custom_templet_4').css("display", "table-row"); | ||
| 571 | }else{ | ||
| 572 | jQuery('.failuretr_custom_templet_4').css("display", "none"); | ||
| 573 | } | ||
| 574 | |||
| 575 | if(radioValue == "templet5"){ | ||
| 576 | jQuery('.failuretr_custom_templet_5').css("display", "table-row"); | ||
| 577 | }else{ | ||
| 578 | jQuery('.failuretr_custom_templet_5').css("display", "none"); | ||
| 579 | } | ||
| 580 | }); | ||
| 581 | }); | ||
| 582 | </script> | ||
| 583 | <style type="text/css"> | ||
| 584 | .form-group.smartcat-uploader { | ||
| 585 | display: inline-block; | ||
| 586 | } | ||
| 587 | table.tbl_child td { | ||
| 588 | padding: 0px 6px; | ||
| 589 | } | ||
| 590 | .form-table td { | ||
| 591 | padding: 0px; | ||
| 592 | } | ||
| 593 | .tr_custom_templet,.failuretr_custom_templet,.custom_templet_1,.custom_templet_2,.custom_templet_3,.custom_templet_4,.custom_templet_5,.failuretr_custom_templet_1,.failuretr_custom_templet_2,.failuretr_custom_templet_3,.failuretr_custom_templet_4,.failuretr_custom_templet_5{ | ||
| 594 | display: none; | ||
| 595 | } | ||
| 596 | .failure_popup { | ||
| 597 | pointer-events: none; | ||
| 598 | opacity: 0.7; | ||
| 599 | } | ||
| 600 | </style> | ||
| 601 | <?php | ||
| 602 | } | ||
| 603 | |||
| 604 | |||
| 605 | function CF7POPUP_image_uploader_field( $name, $value = '') { | ||
| 606 | $image = ' button">Upload image'; | ||
| 607 | $image_size = 'full'; // it would be better to use thumbnail size here (150x150 or so) | ||
| 608 | $display = 'none'; // display state ot the "Remove image" button | ||
| 609 | |||
| 610 | if( $image_attributes = wp_get_attachment_image_src( $value, $image_size ) ) { | ||
| 611 | |||
| 612 | // $image_attributes[0] - image URL | ||
| 613 | // $image_attributes[1] - image width | ||
| 614 | // $image_attributes[2] - image height | ||
| 615 | |||
| 616 | $image = '"><img src="' . $image_attributes[0] . '" style="max-width:95%;display:block;" />'; | ||
| 617 | $display = 'inline-block'; | ||
| 618 | |||
| 619 | } | ||
| 620 | |||
| 621 | return ' | ||
| 622 | <div> | ||
| 623 | <a href="#" class="misha_upload_image_button' . $image . '</a> | ||
| 624 | <input type="hidden" name="' . $name . '" id="' . $name . '" value="' . $value . '" /> | ||
| 625 | </div>'; | ||
| 626 | } | ||
| 627 | |||
| 628 | |||
| 629 | function CF7POPUP_image_uploader_field_failer( $name, $value = '') { | ||
| 630 | $image = ' button">Upload image'; | ||
| 631 | $image_size = 'full'; // it would be better to use thumbnail size here (150x150 or so) | ||
| 632 | $display = 'none'; // display state ot the "Remove image" button | ||
| 633 | |||
| 634 | if( $image_attributes = wp_get_attachment_image_src( $value, $image_size ) ) { | ||
| 635 | |||
| 636 | // $image_attributes[0] - image URL | ||
| 637 | // $image_attributes[1] - image width | ||
| 638 | // $image_attributes[2] - image height | ||
| 639 | |||
| 640 | $image = '"><img src="' . $image_attributes[0] . '" style="max-width:95%;display:block;" />'; | ||
| 641 | $display = 'inline-block'; | ||
| 642 | |||
| 643 | } | ||
| 644 | |||
| 645 | return ' | ||
| 646 | <div> | ||
| 647 | <a href="#" class="misha_upload_image_button_failer' . $image . '</a> | ||
| 648 | <input type="hidden" name="' . $name . '" id="' . $name . '" value="' . $value . '" /> | ||
| 649 | </div>'; | ||
| 650 | } | ||
| 651 | |||
| 652 | |||
| 653 | function init() { | ||
| 654 | add_filter( 'wpcf7_editor_panels', array( $this, 'CF7POPUP_wpcf7_editor_panels'), 10, 1 ); | ||
| 655 | add_action('admin_footer', array( $this, 'CF7POPUP_wpcf7_admin_script')); | ||
| 656 | } | ||
| 657 | |||
| 658 | |||
| 659 | public static function instance() { | ||
| 660 | if (!isset(self::$instance)) { | ||
| 661 | self::$instance = new self(); | ||
| 662 | self::$instance->init(); | ||
| 663 | } | ||
| 664 | return self::$instance; | ||
| 665 | } | ||
| 666 | } | ||
| 667 | CF7POPUP_menu::instance(); | ||
| 668 | } |
wp-content/plugins/popup-message-for-contact-form-7/popupmessage-for-contact-form-7.php
deleted
100644 → 0
| 1 | <?php | ||
| 2 | /** | ||
| 3 | * Plugin Name: Popup Message for Contact Form 7 | ||
| 4 | * Description: This plugin will show the popup when Contact Form 7 has been submitted. | ||
| 5 | * Version: 2.0 | ||
| 6 | * Author: Ocean Infotech | ||
| 7 | * Author URI: Author's website | ||
| 8 | */ | ||
| 9 | |||
| 10 | |||
| 11 | |||
| 12 | if (!defined('ABSPATH')) { | ||
| 13 | die('-1'); | ||
| 14 | } | ||
| 15 | if (!defined('CF7POPUP_PLUGIN_NAME')) { | ||
| 16 | define('CF7POPUP_PLUGIN_NAME', 'Contact Form 7 Popup'); | ||
| 17 | } | ||
| 18 | if (!defined('CF7POPUP_PLUGIN_VERSION')) { | ||
| 19 | define('CF7POPUP_PLUGIN_VERSION', '1.0.0'); | ||
| 20 | } | ||
| 21 | if (!defined('CF7POPUP_PLUGIN_FILE')) { | ||
| 22 | define('CF7POPUP_PLUGIN_FILE', __FILE__); | ||
| 23 | } | ||
| 24 | if (!defined('CF7POPUP_PLUGIN_DIR')) { | ||
| 25 | define('CF7POPUP_PLUGIN_DIR',plugins_url('', __FILE__)); | ||
| 26 | } | ||
| 27 | if (!defined('CF7POPUP_DOMAIN')) { | ||
| 28 | define('CF7POPUP_DOMAIN', 'cf7popup'); | ||
| 29 | } | ||
| 30 | |||
| 31 | |||
| 32 | if (!class_exists('CF7POPUPMAIN')) { | ||
| 33 | |||
| 34 | class CF7POPUPMAIN { | ||
| 35 | |||
| 36 | protected static $CF7POPUPMAIN_instance; | ||
| 37 | |||
| 38 | //Load all includes files | ||
| 39 | function includes() { | ||
| 40 | include_once('popup_panel.php'); | ||
| 41 | include_once('save_popup_setting.php'); | ||
| 42 | include_once('submit_popup_settings.php'); | ||
| 43 | } | ||
| 44 | |||
| 45 | function init() { | ||
| 46 | add_action( 'admin_init', array($this, 'CF7POPUPMAIN_load_plugin'), 11 ); | ||
| 47 | add_action( 'admin_enqueue_scripts', array($this, 'CF7POPUP_load_admin_script_style')); | ||
| 48 | add_action( 'wp_enqueue_scripts', array($this, 'CF7POPUP_load_front_script_style')); | ||
| 49 | add_action( 'admin_enqueue_scripts', array($this, 'CF7POPUP_load_front_script_style')); | ||
| 50 | } | ||
| 51 | |||
| 52 | function CF7POPUPMAIN_load_plugin() { | ||
| 53 | if ( ! ( is_plugin_active( 'contact-form-7/wp-contact-form-7.php' ) ) ) { | ||
| 54 | add_action( 'admin_notices', array($this,'CF7POPUPMAIN_install_error') ); | ||
| 55 | } | ||
| 56 | } | ||
| 57 | |||
| 58 | function CF7POPUPMAIN_install_error() { | ||
| 59 | deactivate_plugins( plugin_basename( __FILE__ ) ); | ||
| 60 | delete_transient( get_current_user_id() . 'cf7error' ); | ||
| 61 | echo '<div class="error"><p> This plugin is deactivated because it require <a href="plugin-install.php?tab=search&s=contact+form+7">Contact Form 7</a> plugin installed and activated.</p></div>'; | ||
| 62 | } | ||
| 63 | |||
| 64 | //Add JS and CSS on Backend | ||
| 65 | function CF7POPUP_load_admin_script_style() { | ||
| 66 | wp_enqueue_media(); | ||
| 67 | wp_enqueue_script( 'pmfcf-wp-media-uploader', plugins_url( 'popup-message-for-contact-form-7-pro/js/wp_media_uploader.js', __DIR__ ) ); | ||
| 68 | } | ||
| 69 | |||
| 70 | //Add JS and CSS on Frontend | ||
| 71 | function CF7POPUP_load_front_script_style() { | ||
| 72 | wp_enqueue_script( 'pmfcf-script-popupscript', plugins_url( '/js/popupscript.js', __FILE__ ) ); | ||
| 73 | wp_enqueue_script( 'pmfcf-script-sweetalert2', plugins_url( '/js/sweetalert2.all.min.js', __FILE__ ) ); | ||
| 74 | wp_enqueue_script( 'pmfcf-jscolor', plugins_url( '/js/jscolor.js', __FILE__ ) ); | ||
| 75 | wp_enqueue_style( 'pmfcf-sweetalert2-style', plugins_url( '/css/sweetalert2.min.css', __FILE__ ) ); | ||
| 76 | wp_enqueue_style( 'pmfcf-style', plugins_url( '/css/style.css', __FILE__ ) ); | ||
| 77 | } | ||
| 78 | |||
| 79 | //Plugin Rating | ||
| 80 | public static function do_activation() { | ||
| 81 | set_transient('ocinsta-first-rating', true, MONTH_IN_SECONDS); | ||
| 82 | } | ||
| 83 | |||
| 84 | public static function CF7POPUPMAIN_instance() { | ||
| 85 | if (!isset(self::$CF7POPUPMAIN_instance)) { | ||
| 86 | self::$CF7POPUPMAIN_instance = new self(); | ||
| 87 | self::$CF7POPUPMAIN_instance->init(); | ||
| 88 | self::$CF7POPUPMAIN_instance->includes(); | ||
| 89 | } | ||
| 90 | return self::$CF7POPUPMAIN_instance; | ||
| 91 | } | ||
| 92 | |||
| 93 | } | ||
| 94 | |||
| 95 | add_action('plugins_loaded', array('CF7POPUPMAIN', 'CF7POPUPMAIN_instance')); | ||
| 96 | register_activation_hook(CF7POPUP_PLUGIN_FILE, array('CF7POPUPMAIN', 'do_activation')); | ||
| 97 | } |
| 1 | === Popup Message for Contact Form 7=== | ||
| 2 | Tested up to: 5.2 | ||
| 3 | Tags: contact form 7,contact form, Error message,message popup , submit form | ||
| 4 | Donate link: https://bit.ly/2CqhQq7 | ||
| 5 | License: GPLv2 or later | ||
| 6 | License URI: http://www.gnu.org/licenses/gpl-3.0.html | ||
| 7 | |||
| 8 | CF7 Lightbox Popup Success is offering features like Add Success And Error message in to Fronted side in contact form 7 | ||
| 9 | |||
| 10 | == Description == | ||
| 11 | |||
| 12 | CF7 Lightbox Popup Success is offering features like **Add Success and Error message Popup** in to Fronted side in contact form 7. | ||
| 13 | In wordpress admin there is all setting to popup to customize background color, font size and font color. | ||
| 14 | |||
| 15 | 🔸 **[Demos](http://oceanwebguru.com/)** | ||
| 16 | |||
| 17 | > **Plugin Features** | ||
| 18 | > | ||
| 19 | > * Create popup for any Contact Form 7 form | ||
| 20 | > * Pre-Define Success Popup Template | ||
| 21 | > * Use different Success popups for different form | ||
| 22 | > * Shows Success popup when form submitted successfully | ||
| 23 | > * Customize Success Popup content | ||
| 24 | > * Customize Success Popup background color | ||
| 25 | > * Customize Success Popup font color | ||
| 26 | > * Customize Success Popup button-text | ||
| 27 | > * Customize Success Popup button color | ||
| 28 | > * Customize Success Popup Duration time | ||
| 29 | > * Customize Success Popup Background image | ||
| 30 | > * Customize Success Popup gradient colors | ||
| 31 | > * Popup is fully responsive | ||
| 32 | > * Compatible in all major browser | ||
| 33 | |||
| 34 | |||
| 35 | 🔸 **[Purchase Pro](https://www.xeeshop.com/product/contact-form-7-popup-message-pro/)** | ||
| 36 | |||
| 37 | > **Plugin Pro Features** | ||
| 38 | > | ||
| 39 | > * Create popup for any Contact Form 7 form | ||
| 40 | > * Pre-Define Success and Faild Popup Template | ||
| 41 | > * Use different Success and Faild popups for different form | ||
| 42 | > * Shows Success and Faild popup when form submitted successfully | ||
| 43 | > * Customize Success and Faild Popup content | ||
| 44 | > * Customize Success and Faild Popup background color | ||
| 45 | > * Customize Success and Faild Popup font color | ||
| 46 | > * Customize Success and Faild Popup button-text | ||
| 47 | > * Customize Success and Faild Popup button color | ||
| 48 | > * Customize Success and Faild Popup Duration time | ||
| 49 | > * Customize Success and Faild Popup Background image | ||
| 50 | > * Customize Success and Faild Popup gradient colors | ||
| 51 | > * Popup is fully responsive | ||
| 52 | > * Compatible in all major browser | ||
| 53 | > * Fast Customer Support | ||
| 54 | |||
| 55 | 🔸 **[Donation](https://bit.ly/2CqhQq7)** | ||
| 56 | |||
| 57 | |||
| 58 | **Our More Plugin** | ||
| 59 | |||
| 60 | 🔸 [**Cf7 Product List Dropdown**](https://wordpress.org/plugins/cf7-product-list-dropdown/) | ||
| 61 | 🔸 [**Popup Message for Contact Form 7**](https://wordpress.org/plugins/popup-message-for-contact-form-7/) | ||
| 62 | 🔸 [**Min and max Qty Rule Woocommerce**](https://wordpress.org/plugins/min-and-max-woocommerce-purchase-rule-by-product-category/) | ||
| 63 | 🔸 [**Post Slider**](https://wordpress.org/plugins/post-slider-by-oc/) | ||
| 64 | 🔸 [**Instagram Slider and Gallery**](https://wordpress.org/plugins/oc-instagram-slider/) | ||
| 65 | |||
| 66 | == Screenshots == | ||
| 67 | |||
| 68 | 1. screenshot-1.png | ||
| 69 | 2. screenshot-2.png | ||
| 70 | 3. screenshot-3.png | ||
| 71 | 4. screenshot-4.png | ||
| 72 | 5. screenshot-5.png |
| 1 | <?php | ||
| 2 | if (!defined('ABSPATH')) | ||
| 3 | exit; | ||
| 4 | |||
| 5 | if (!class_exists('CF7POPUP_save_menu')) { | ||
| 6 | |||
| 7 | class CF7POPUP_save_menu { | ||
| 8 | |||
| 9 | protected static $instance; | ||
| 10 | |||
| 11 | function CF7POPUP_wpcf7_after_save( $instance) { | ||
| 12 | |||
| 13 | $formid = $instance->id; | ||
| 14 | |||
| 15 | if(!empty($_POST['enabled_popup_val'])) { | ||
| 16 | $enabled_popup_id = $formid; | ||
| 17 | }else{ | ||
| 18 | $enabled_popup_id = ""; | ||
| 19 | } | ||
| 20 | |||
| 21 | if(!empty($_POST['enabled_failure_popup_val'])) { | ||
| 22 | $enabled_failure_popup_id = $formid; | ||
| 23 | }else{ | ||
| 24 | $enabled_failure_popup_id = ""; | ||
| 25 | } | ||
| 26 | |||
| 27 | // Add or Update popup general settings | ||
| 28 | |||
| 29 | update_post_meta( $formid, 'enabled-popup', $enabled_popup_id ); | ||
| 30 | |||
| 31 | $popup_message_data = sanitize_text_field($_POST['popup_message']); | ||
| 32 | update_post_meta( $formid, 'popup_message', $popup_message_data ); | ||
| 33 | |||
| 34 | $m_popup_width_data = sanitize_text_field($_POST['m_popup_width']); | ||
| 35 | update_post_meta( $formid, 'm_popup_width', $m_popup_width_data ); | ||
| 36 | |||
| 37 | $m_popup_radius = sanitize_text_field($_POST['m_popup_radius']); | ||
| 38 | update_post_meta( $formid, 'm_popup_radius', $m_popup_radius ); | ||
| 39 | |||
| 40 | $m_popup_duration_data = sanitize_text_field($_POST['m_popup_duration']); | ||
| 41 | update_post_meta( $formid, 'm_popup_duration', $m_popup_duration_data ); | ||
| 42 | |||
| 43 | $popup_templet_data = sanitize_text_field($_POST['popup_templet']); | ||
| 44 | update_post_meta( $formid, 'popup_templet', $popup_templet_data ); | ||
| 45 | |||
| 46 | if($popup_templet_data == "templet1"){ | ||
| 47 | update_post_meta( $formid, 'popup_background_option', "bg_color"); | ||
| 48 | update_post_meta( $formid, 'popup_background_color', "#34495e" ); | ||
| 49 | update_post_meta( $formid, 'popup_text_color', "#ffffff" ); | ||
| 50 | update_post_meta( $formid, 'popup_button_background_color', "#27ad5f" ); | ||
| 51 | |||
| 52 | } | ||
| 53 | if($popup_templet_data == "templet2"){ | ||
| 54 | update_post_meta( $formid, 'popup_background_option', "gradient_color"); | ||
| 55 | update_post_meta( $formid, 'popup_gradient_color', "#CD5C5C"); | ||
| 56 | update_post_meta( $formid, 'popup_gradient_color1', "#FFA07A"); | ||
| 57 | update_post_meta( $formid, 'popup_text_color', "#000000" ); | ||
| 58 | update_post_meta( $formid, 'popup_button_background_color', "#ffffff" ); | ||
| 59 | |||
| 60 | } | ||
| 61 | if($popup_templet_data == "templet3"){ | ||
| 62 | update_post_meta( $formid, 'popup_background_option', "image"); | ||
| 63 | update_post_meta( $formid, 'popup_image_color', plugins_url( 'popup-message-for-contact-form-7/images/pexels-photo-1191710.jpeg')); | ||
| 64 | update_post_meta( $formid, 'popup_text_color', "#ffffff" ); | ||
| 65 | update_post_meta( $formid, 'popup_button_background_color', "#51654e" ); | ||
| 66 | |||
| 67 | } | ||
| 68 | if($popup_templet_data == "templet4"){ | ||
| 69 | update_post_meta( $formid, 'popup_background_option', "gradient_color"); | ||
| 70 | update_post_meta( $formid, 'popup_gradient_color', "#268717"); | ||
| 71 | update_post_meta( $formid, 'popup_gradient_color1', "#A6EF9B"); | ||
| 72 | update_post_meta( $formid, 'popup_text_color', "#000000" ); | ||
| 73 | update_post_meta( $formid, 'popup_button_background_color', "#ffffff" ); | ||
| 74 | |||
| 75 | } | ||
| 76 | if($popup_templet_data == "templet5"){ | ||
| 77 | update_post_meta( $formid, 'popup_background_option', "image"); | ||
| 78 | update_post_meta( $formid, 'popup_image_color', plugins_url( 'popup-message-for-contact-form-7/images/background-brick-brickwork-268966.jpg')); | ||
| 79 | update_post_meta( $formid, 'popup_text_color', "#ffffff" ); | ||
| 80 | update_post_meta( $formid, 'popup_button_background_color', "#FF9800" ); | ||
| 81 | |||
| 82 | } | ||
| 83 | if($popup_templet_data == "custom_templet"){ | ||
| 84 | |||
| 85 | update_post_meta( $formid, 'popup_background_option', 'bg_color' ); | ||
| 86 | update_post_meta( $formid, 'popup_background_color', "#34495e" ); | ||
| 87 | update_post_meta( $formid, 'popup_text_color', "#ffffff" ); | ||
| 88 | update_post_meta( $formid, 'popup_button_background_color', "#51654e" ); | ||
| 89 | |||
| 90 | } | ||
| 91 | |||
| 92 | |||
| 93 | } | ||
| 94 | |||
| 95 | function init() { | ||
| 96 | add_action( 'wpcf7_after_save', array( $this, 'CF7POPUP_wpcf7_after_save'), 10, 1 ); | ||
| 97 | } | ||
| 98 | |||
| 99 | |||
| 100 | public static function instance() { | ||
| 101 | if (!isset(self::$instance)) { | ||
| 102 | self::$instance = new self(); | ||
| 103 | self::$instance->init(); | ||
| 104 | } | ||
| 105 | return self::$instance; | ||
| 106 | } | ||
| 107 | } | ||
| 108 | CF7POPUP_save_menu::instance(); | ||
| 109 | } |
| 1 | <?php | ||
| 2 | if (!defined('ABSPATH')) | ||
| 3 | exit; | ||
| 4 | |||
| 5 | if (!class_exists('CF7POPUP_submit_menu')) { | ||
| 6 | |||
| 7 | class CF7POPUP_submit_menu { | ||
| 8 | |||
| 9 | protected static $instance; | ||
| 10 | |||
| 11 | function CF7POPUP_wpcf7_ajax_json_echo( $items, $result ) { | ||
| 12 | |||
| 13 | $formid = $_REQUEST['_wpcf7']; | ||
| 14 | |||
| 15 | $items["popup_id"] = get_post_meta( $formid, 'enabled-popup', true ); | ||
| 16 | |||
| 17 | $items["failure_popup_id"] = get_post_meta( $formid, 'enabled-popup-failure', true ); | ||
| 18 | |||
| 19 | // Check popup message if text is not available then it pass default text | ||
| 20 | if( ! empty(get_post_meta( $formid, 'popup_message', true ))){ | ||
| 21 | |||
| 22 | $items["popup_message"] = get_post_meta( $formid, 'popup_message', true ); | ||
| 23 | |||
| 24 | }else{ | ||
| 25 | |||
| 26 | $items["popup_message"] = "Form has been submitted successfully."; | ||
| 27 | |||
| 28 | } | ||
| 29 | |||
| 30 | // Check popup width if width is not available then it pass default width | ||
| 31 | if( ! empty(get_post_meta( $formid, 'm_popup_width', true ))){ | ||
| 32 | |||
| 33 | $items["m_popup_width"] = get_post_meta( $formid, 'm_popup_width', true ); | ||
| 34 | |||
| 35 | }else{ | ||
| 36 | |||
| 37 | $items["m_popup_width"] = "500px"; | ||
| 38 | |||
| 39 | } | ||
| 40 | |||
| 41 | // Check popup border radius if border radius is not available then it pass default border radius | ||
| 42 | if( ! empty(get_post_meta( $formid, 'm_popup_radius', true ))){ | ||
| 43 | |||
| 44 | $items["m_popup_radius"] = get_post_meta( $formid, 'm_popup_radius', true ); | ||
| 45 | |||
| 46 | }else{ | ||
| 47 | |||
| 48 | $items["m_popup_radius"] = "10px"; | ||
| 49 | |||
| 50 | } | ||
| 51 | |||
| 52 | // Check popup duration time if duration time is not available then it pass default duration time | ||
| 53 | if( ! empty(get_post_meta( $formid, 'm_popup_duration', true ))){ | ||
| 54 | |||
| 55 | $items["m_popup_duration"] = get_post_meta( $formid, 'm_popup_duration', true ); | ||
| 56 | |||
| 57 | }else{ | ||
| 58 | |||
| 59 | $items["m_popup_duration"] = "100000000000"; | ||
| 60 | |||
| 61 | } | ||
| 62 | |||
| 63 | // Check popup background option if option is not available then it pass popup background option | ||
| 64 | if( ! empty(get_post_meta( $formid, 'popup_background_option', true ))){ | ||
| 65 | |||
| 66 | $items["popup_background_option"] = get_post_meta( $formid, 'popup_background_option', true ); | ||
| 67 | |||
| 68 | }else{ | ||
| 69 | |||
| 70 | $items["popup_background_option"] = "bg_color"; | ||
| 71 | |||
| 72 | } | ||
| 73 | |||
| 74 | // Check popup background color if color is not available then it pass default color | ||
| 75 | if( ! empty(get_post_meta( $formid, 'popup_background_color', true ))){ | ||
| 76 | |||
| 77 | $items["popup_background_color"] = get_post_meta( $formid, 'popup_background_color', true ); | ||
| 78 | |||
| 79 | }else{ | ||
| 80 | |||
| 81 | $items["popup_background_color"] = "#fff"; | ||
| 82 | |||
| 83 | } | ||
| 84 | |||
| 85 | // Check popup background image if image is not available then it pass blank value | ||
| 86 | if( ! empty(get_post_meta( $formid, 'popup_image_color', true ))){ | ||
| 87 | |||
| 88 | $items["popup_image_color"] = get_post_meta( $formid, 'popup_image_color', true ); | ||
| 89 | |||
| 90 | }else{ | ||
| 91 | |||
| 92 | $items["popup_image_color"] = plugins_url( '/popup-message-for-contact-form-7/popup_img2.png'); | ||
| 93 | |||
| 94 | } | ||
| 95 | |||
| 96 | // Check popup background gradient color if gradient color is not available then it pass gradient color | ||
| 97 | if( ! empty(get_post_meta( $formid, 'popup_gradient_color', true ))){ | ||
| 98 | |||
| 99 | $items["popup_gradient_color"] = get_post_meta( $formid, 'popup_gradient_color', true ); | ||
| 100 | |||
| 101 | }else{ | ||
| 102 | |||
| 103 | $items["popup_gradient_color"] = "#fff"; | ||
| 104 | |||
| 105 | } | ||
| 106 | |||
| 107 | // Check popup background gradient color 2 if gradient color 2 is not available then it pass gradient color | ||
| 108 | if( ! empty(get_post_meta( $formid, 'popup_gradient_color1', true ))){ | ||
| 109 | |||
| 110 | $items["popup_gradient_color1"] = get_post_meta( $formid, 'popup_gradient_color1', true ); | ||
| 111 | |||
| 112 | }else{ | ||
| 113 | |||
| 114 | $items["popup_gradient_color1"] = "#FF0000"; | ||
| 115 | |||
| 116 | } | ||
| 117 | |||
| 118 | |||
| 119 | // Check popup text color if color is not available then it pass default color | ||
| 120 | if( ! empty(get_post_meta( $formid, 'popup_text_color', true ))){ | ||
| 121 | |||
| 122 | $items["popup_text_color"] = get_post_meta( $formid, 'popup_text_color', true ); | ||
| 123 | |||
| 124 | }else{ | ||
| 125 | |||
| 126 | $items["popup_text_color"] = "#000"; | ||
| 127 | |||
| 128 | } | ||
| 129 | |||
| 130 | // Check popup button text if text is not available then it pass default text | ||
| 131 | if( ! empty(get_post_meta( $formid, 'popup_button_text', true ))){ | ||
| 132 | |||
| 133 | $items["popup_button_text"] = get_post_meta( $formid, 'popup_button_text', true ); | ||
| 134 | |||
| 135 | }else{ | ||
| 136 | |||
| 137 | $items["popup_button_text"] = "Ok"; | ||
| 138 | |||
| 139 | } | ||
| 140 | |||
| 141 | // Check popup button background color if color is not available then it pass default color | ||
| 142 | if( ! empty(get_post_meta( $formid, 'popup_button_background_color', true ))){ | ||
| 143 | |||
| 144 | $items["popup_button_background_color"] = get_post_meta( $formid, 'popup_button_background_color', true ); | ||
| 145 | |||
| 146 | }else{ | ||
| 147 | |||
| 148 | $items["popup_button_background_color"] = "#3085d6"; | ||
| 149 | |||
| 150 | } | ||
| 151 | |||
| 152 | |||
| 153 | return $items; | ||
| 154 | } | ||
| 155 | |||
| 156 | function init() { | ||
| 157 | add_filter( 'wpcf7_ajax_json_echo', array( $this, 'CF7POPUP_wpcf7_ajax_json_echo'), 10, 2 ); | ||
| 158 | } | ||
| 159 | |||
| 160 | |||
| 161 | public static function instance() { | ||
| 162 | if (!isset(self::$instance)) { | ||
| 163 | self::$instance = new self(); | ||
| 164 | self::$instance->init(); | ||
| 165 | } | ||
| 166 | return self::$instance; | ||
| 167 | } | ||
| 168 | } | ||
| 169 | CF7POPUP_submit_menu::instance(); | ||
| 170 | } |
| ... | @@ -15263,6 +15263,56 @@ element.style { | ... | @@ -15263,6 +15263,56 @@ element.style { |
| 15263 | line-height: 25px; | 15263 | line-height: 25px; |
| 15264 | } | 15264 | } |
| 15265 | 15265 | ||
| 15266 | .modal-content { | ||
| 15267 | border-radius: 0px !important; | ||
| 15268 | } | ||
| 15269 | |||
| 15270 | .modal-header { | ||
| 15271 | border-bottom: 0px; | ||
| 15272 | } | ||
| 15273 | .modal-header h2, .modal-header .h2 { | ||
| 15274 | margin-top: 0px; | ||
| 15275 | } | ||
| 15276 | .modal-header .btn-close { | ||
| 15277 | top: -10px; | ||
| 15278 | position: relative; | ||
| 15279 | } | ||
| 15280 | |||
| 15281 | .modal-body { | ||
| 15282 | padding-top: 0px; | ||
| 15283 | } | ||
| 15284 | .modal-body a { | ||
| 15285 | color: #1A3668 !important; | ||
| 15286 | text-decoration: none; | ||
| 15287 | } | ||
| 15288 | .modal-body a:hover { | ||
| 15289 | text-decoration: underline; | ||
| 15290 | } | ||
| 15291 | |||
| 15292 | .modal-footer { | ||
| 15293 | border-top: 0px; | ||
| 15294 | } | ||
| 15295 | |||
| 15296 | .contest-close { | ||
| 15297 | background-color: transparent !important; | ||
| 15298 | text-transform: uppercase; | ||
| 15299 | max-width: 100px; | ||
| 15300 | float: right; | ||
| 15301 | border: 1px solid #183668 !important; | ||
| 15302 | color: #183668 !important; | ||
| 15303 | transition: ease-out 0.5s; | ||
| 15304 | margin-top: 20px; | ||
| 15305 | margin: auto; | ||
| 15306 | padding: 10px 20px; | ||
| 15307 | } | ||
| 15308 | |||
| 15309 | .contest-close:hover { | ||
| 15310 | background-color: transparent !important; | ||
| 15311 | color: #fff !important; | ||
| 15312 | box-shadow: inset 100px 0 0 0 #183668; | ||
| 15313 | transition: ease-out 0.5s; | ||
| 15314 | } | ||
| 15315 | |||
| 15266 | #wrapper-footer { | 15316 | #wrapper-footer { |
| 15267 | background-color: #183668; | 15317 | background-color: #183668; |
| 15268 | width: 100%; | 15318 | width: 100%; | ... | ... |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
| ... | @@ -65,6 +65,39 @@ $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'full' ); | ... | @@ -65,6 +65,39 @@ $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'full' ); |
| 65 | </div><!-- #content --> | 65 | </div><!-- #content --> |
| 66 | 66 | ||
| 67 | </div><!-- #<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?> --> | 67 | </div><!-- #<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?> --> |
| 68 | <div class="modal fade" id="contest_popup" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> | ||
| 69 | <div class="modal-dialog modal-dialog-centered"> | ||
| 70 | <div class="modal-content"> | ||
| 71 | <div class="modal-header"> | ||
| 72 | <h2 class="modal-title" id="exampleModalLabel">Thank you for your entry!</h2> | ||
| 73 | <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | ||
| 74 | </div> | ||
| 75 | <div class="modal-body"> | ||
| 76 | 5 winners will be drawn on . If you’re one of them (fingers crossed), we’ll be in touch! For full giveaway details, go to <a href="https://stellervista.ca/giveaway-details/">Giveaway Details.</a> | ||
| 77 | |||
| 78 | </div> | ||
| 79 | <div class="modal-footer"> | ||
| 80 | <button type="button" class="contest-close" data-bs-dismiss="modal">Close</button> | ||
| 81 | </div> | ||
| 82 | </div> | ||
| 83 | </div> | ||
| 84 | </div> | ||
| 85 | <div class="modal fade" id="contact_popup" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> | ||
| 86 | <div class="modal-dialog modal-dialog-centered"> | ||
| 87 | <div class="modal-content"> | ||
| 88 | <div class="modal-header"> | ||
| 89 | <h2 class="modal-title" id="exampleModalLabel">Thank you!</h2> | ||
| 90 | <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | ||
| 91 | </div> | ||
| 92 | <div class="modal-body"> | ||
| 93 | |||
| 68 | 94 | ||
| 95 | </div> | ||
| 96 | <div class="modal-footer"> | ||
| 97 | <button type="button" class="contest-close" data-bs-dismiss="modal">Close</button> | ||
| 98 | </div> | ||
| 99 | </div> | ||
| 100 | </div> | ||
| 101 | </div> | ||
| 69 | <?php | 102 | <?php |
| 70 | get_footer(); | 103 | get_footer(); | ... | ... |
| ... | @@ -6854,6 +6854,17 @@ | ... | @@ -6854,6 +6854,17 @@ |
| 6854 | $(this).parents('.wp-block-columns').attr("style", 'background-image:url(' + $(this).children('img').attr('src') + ');'); | 6854 | $(this).parents('.wp-block-columns').attr("style", 'background-image:url(' + $(this).children('img').attr('src') + ');'); |
| 6855 | $(this).children('img').hide(); | 6855 | $(this).children('img').hide(); |
| 6856 | }); | 6856 | }); |
| 6857 | document.addEventListener('wpcf7mailsent', function (event) { | ||
| 6858 | if ('6' == event.detail.contactFormId) { | ||
| 6859 | // Change 34 to the ID of the form | ||
| 6860 | jQuery('#contest_popup').modal('show'); //this is the bootstrap modal popup id | ||
| 6861 | } | ||
| 6862 | |||
| 6863 | if ('108' == event.detail.contactFormId) { | ||
| 6864 | // Change 34 to the ID of the form | ||
| 6865 | jQuery('#contact_popup').modal('show'); //this is the bootstrap modal popup id | ||
| 6866 | } | ||
| 6867 | }, false); | ||
| 6857 | }); | 6868 | }); |
| 6858 | 6869 | ||
| 6859 | exports.Alert = alert; | 6870 | exports.Alert = alert; | ... | ... |
This diff could not be displayed because it is too large.
| ... | @@ -34,24 +34,24 @@ | ... | @@ -34,24 +34,24 @@ |
| 34 | * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) | 34 | * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) |
| 35 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) | 35 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) |
| 36 | */ | 36 | */ |
| 37 | !function(e,t){e.exports=function(e,t,n){const i="button",s="active",o='[data-bs-toggle="button"]',r="click.bs.button.data-api";class a extends e{static get NAME(){return i}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(s))}static jQueryInterface(e){return this.each((function(){const t=a.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}return t.on(document,r,o,(e=>{e.preventDefault();const t=e.target.closest(o);a.getOrCreateInstance(t).toggle()})),n.defineJQueryPlugin(a),a}(T(),g(),p())}({get exports(){return I},set exports(e){I=e}});var N,j=I,M={},F={},H={get exports(){return F},set exports(e){F=e}};function R(){return N||(N=1,function(e,t){e.exports=function(e,t,n){const i="swipe",s=".bs.swipe",o=`touchstart${s}`,r=`touchmove${s}`,a=`touchend${s}`,l=`pointerdown${s}`,c=`pointerup${s}`,u="touch",h="pen",d="pointer-event",f=40,p={endCallback:null,leftCallback:null,rightCallback:null},g={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class m extends t{constructor(e,t){super(),this._element=e,e&&m.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return p}static get DefaultType(){return g}static get NAME(){return i}dispose(){e.off(this._element,s)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),n.execute(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=f)return;const t=e/this._deltaX;this._deltaX=0,t&&n.execute(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(e.on(this._element,l,(e=>this._start(e))),e.on(this._element,c,(e=>this._end(e))),this._element.classList.add(d)):(e.on(this._element,o,(e=>this._start(e))),e.on(this._element,r,(e=>this._move(e))),e.on(this._element,a,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===h||e.pointerType===u)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}return m}(g(),A(),p())}(H)),F} | 37 | !function(e,t){e.exports=function(e,t,n){const i="button",s="active",o='[data-bs-toggle="button"]',r="click.bs.button.data-api";class a extends e{static get NAME(){return i}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(s))}static jQueryInterface(e){return this.each((function(){const t=a.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}return t.on(document,r,o,(e=>{e.preventDefault();const t=e.target.closest(o);a.getOrCreateInstance(t).toggle()})),n.defineJQueryPlugin(a),a}(T(),g(),p())}({get exports(){return I},set exports(e){I=e}});var j,N=I,M={},F={},H={get exports(){return F},set exports(e){F=e}};function R(){return j||(j=1,function(e,t){e.exports=function(e,t,n){const i="swipe",s=".bs.swipe",o=`touchstart${s}`,r=`touchmove${s}`,a=`touchend${s}`,l=`pointerdown${s}`,c=`pointerup${s}`,u="touch",h="pen",d="pointer-event",f=40,p={endCallback:null,leftCallback:null,rightCallback:null},g={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class m extends t{constructor(e,t){super(),this._element=e,e&&m.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return p}static get DefaultType(){return g}static get NAME(){return i}dispose(){e.off(this._element,s)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),n.execute(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=f)return;const t=e/this._deltaX;this._deltaX=0,t&&n.execute(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(e.on(this._element,l,(e=>this._start(e))),e.on(this._element,c,(e=>this._end(e))),this._element.classList.add(d)):(e.on(this._element,o,(e=>this._start(e))),e.on(this._element,r,(e=>this._move(e))),e.on(this._element,a,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===h||e.pointerType===u)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}return m}(g(),A(),p())}(H)),F} |
| 38 | /*! | 38 | /*! |
| 39 | * Bootstrap carousel.js v5.3.1 (https://getbootstrap.com/) | 39 | * Bootstrap carousel.js v5.3.1 (https://getbootstrap.com/) |
| 40 | * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) | 40 | * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) |
| 41 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) | 41 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) |
| 42 | */!function(e,t){e.exports=function(e,t,n,i,s,o){const r="carousel",a=".bs.carousel",l=".data-api",c=500,u="next",h="prev",d="left",f="right",p=`slide${a}`,g=`slid${a}`,m=`keydown${a}`,_=`mouseenter${a}`,b=`mouseleave${a}`,v=`dragstart${a}`,y=`load${a}${l}`,w=`click${a}${l}`,E="carousel",x="active",A="slide",T="carousel-item-end",O="carousel-item-start",C="carousel-item-next",k="carousel-item-prev",L=".active",D=".carousel-item",S=L+D,P=".carousel-item img",$=".carousel-indicators",I="[data-bs-slide], [data-bs-slide-to]",N='[data-bs-ride="carousel"]',j={ArrowLeft:f,ArrowRight:d},M={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},F={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class H extends e{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=i.findOne($,this._element),this._addEventListeners(),this._config.ride===E&&this.cycle()}static get Default(){return M}static get DefaultType(){return F}static get NAME(){return r}next(){this._slide(u)}nextWhenVisible(){!document.hidden&&s.isVisible(this._element)&&this.next()}prev(){this._slide(h)}pause(){this._isSliding&&s.triggerTransitionEnd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?t.one(this._element,g,(()=>this.cycle())):this.cycle())}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding)return void t.one(this._element,g,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const s=e>i?u:h;this._slide(s,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&t.on(this._element,m,(e=>this._keydown(e))),"hover"===this._config.pause&&(t.on(this._element,_,(()=>this.pause())),t.on(this._element,b,(()=>this._maybeEnableCycle()))),this._config.touch&&o.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of i.find(P,this._element))t.on(e,v,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(d)),rightCallback:()=>this._slide(this._directionToOrder(f)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),c+this._config.interval))}};this._swipeHelper=new o(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=j[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=i.findOne(L,this._indicatorsElement);t.classList.remove(x),t.removeAttribute("aria-current");const n=i.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(x),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const i=this._getActive(),o=e===u,r=n||s.getNextActiveElement(this._getItems(),i,o,this._config.wrap);if(r===i)return;const a=this._getItemIndex(r),l=n=>t.trigger(this._element,n,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:a});if(l(p).defaultPrevented)return;if(!i||!r)return;const c=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=r;const h=o?O:T,d=o?C:k;r.classList.add(d),s.reflow(r),i.classList.add(h),r.classList.add(h);const f=()=>{r.classList.remove(h,d),r.classList.add(x),i.classList.remove(x,d,h),this._isSliding=!1,l(g)};this._queueCallback(f,i,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(A)}_getActive(){return i.findOne(S,this._element)}_getItems(){return i.find(D,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return s.isRTL()?e===d?h:u:e===d?u:h}_orderToDirection(e){return s.isRTL()?e===h?d:f:e===h?f:d}static jQueryInterface(e){return this.each((function(){const t=H.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}return t.on(document,w,I,(function(e){const t=i.getElementFromSelector(this);if(!t||!t.classList.contains(E))return;e.preventDefault();const s=H.getOrCreateInstance(t),o=this.getAttribute("data-bs-slide-to");return o?(s.to(o),void s._maybeEnableCycle()):"next"===n.getDataAttribute(this,"slide")?(s.next(),void s._maybeEnableCycle()):(s.prev(),void s._maybeEnableCycle())})),t.on(window,y,(()=>{const e=i.find(N);for(const t of e)H.getOrCreateInstance(t)})),s.defineJQueryPlugin(H),H}(T(),g(),x(),S(),p(),R())}({get exports(){return M},set exports(e){M=e}});var B=M,W={}; | 42 | */!function(e,t){e.exports=function(e,t,n,i,s,o){const r="carousel",a=".bs.carousel",l=".data-api",c=500,u="next",h="prev",d="left",f="right",p=`slide${a}`,g=`slid${a}`,m=`keydown${a}`,_=`mouseenter${a}`,b=`mouseleave${a}`,v=`dragstart${a}`,y=`load${a}${l}`,w=`click${a}${l}`,E="carousel",x="active",A="slide",T="carousel-item-end",O="carousel-item-start",C="carousel-item-next",k="carousel-item-prev",L=".active",D=".carousel-item",S=L+D,P=".carousel-item img",$=".carousel-indicators",I="[data-bs-slide], [data-bs-slide-to]",j='[data-bs-ride="carousel"]',N={ArrowLeft:f,ArrowRight:d},M={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},F={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class H extends e{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=i.findOne($,this._element),this._addEventListeners(),this._config.ride===E&&this.cycle()}static get Default(){return M}static get DefaultType(){return F}static get NAME(){return r}next(){this._slide(u)}nextWhenVisible(){!document.hidden&&s.isVisible(this._element)&&this.next()}prev(){this._slide(h)}pause(){this._isSliding&&s.triggerTransitionEnd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?t.one(this._element,g,(()=>this.cycle())):this.cycle())}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding)return void t.one(this._element,g,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const s=e>i?u:h;this._slide(s,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&t.on(this._element,m,(e=>this._keydown(e))),"hover"===this._config.pause&&(t.on(this._element,_,(()=>this.pause())),t.on(this._element,b,(()=>this._maybeEnableCycle()))),this._config.touch&&o.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of i.find(P,this._element))t.on(e,v,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(d)),rightCallback:()=>this._slide(this._directionToOrder(f)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),c+this._config.interval))}};this._swipeHelper=new o(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=N[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=i.findOne(L,this._indicatorsElement);t.classList.remove(x),t.removeAttribute("aria-current");const n=i.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(x),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const i=this._getActive(),o=e===u,r=n||s.getNextActiveElement(this._getItems(),i,o,this._config.wrap);if(r===i)return;const a=this._getItemIndex(r),l=n=>t.trigger(this._element,n,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:a});if(l(p).defaultPrevented)return;if(!i||!r)return;const c=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=r;const h=o?O:T,d=o?C:k;r.classList.add(d),s.reflow(r),i.classList.add(h),r.classList.add(h);const f=()=>{r.classList.remove(h,d),r.classList.add(x),i.classList.remove(x,d,h),this._isSliding=!1,l(g)};this._queueCallback(f,i,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(A)}_getActive(){return i.findOne(S,this._element)}_getItems(){return i.find(D,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return s.isRTL()?e===d?h:u:e===d?u:h}_orderToDirection(e){return s.isRTL()?e===h?d:f:e===h?f:d}static jQueryInterface(e){return this.each((function(){const t=H.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}return t.on(document,w,I,(function(e){const t=i.getElementFromSelector(this);if(!t||!t.classList.contains(E))return;e.preventDefault();const s=H.getOrCreateInstance(t),o=this.getAttribute("data-bs-slide-to");return o?(s.to(o),void s._maybeEnableCycle()):"next"===n.getDataAttribute(this,"slide")?(s.next(),void s._maybeEnableCycle()):(s.prev(),void s._maybeEnableCycle())})),t.on(window,y,(()=>{const e=i.find(j);for(const t of e)H.getOrCreateInstance(t)})),s.defineJQueryPlugin(H),H}(T(),g(),x(),S(),p(),R())}({get exports(){return M},set exports(e){M=e}});var B=M,W={}; |
| 43 | /*! | 43 | /*! |
| 44 | * Bootstrap collapse.js v5.3.1 (https://getbootstrap.com/) | 44 | * Bootstrap collapse.js v5.3.1 (https://getbootstrap.com/) |
| 45 | * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) | 45 | * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) |
| 46 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) | 46 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) |
| 47 | */ | 47 | */ |
| 48 | !function(e,t){e.exports=function(e,t,n,i){const s="collapse",o=".bs.collapse",r=`show${o}`,a=`shown${o}`,l=`hide${o}`,c=`hidden${o}`,u=`click${o}.data-api`,h="show",d="collapse",f="collapsing",p="collapsed",g=`:scope .${d} .${d}`,m="collapse-horizontal",_="width",b="height",v=".collapse.show, .collapse.collapsing",y='[data-bs-toggle="collapse"]',w={parent:null,toggle:!0},E={parent:"(null|element)",toggle:"boolean"};class x extends e{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=n.find(y);for(const e of i){const t=n.getSelectorFromElement(e),i=n.find(t).filter((e=>e===this._element));null!==t&&i.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return w}static get DefaultType(){return E}static get NAME(){return s}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(v).filter((e=>e!==this._element)).map((e=>x.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(t.trigger(this._element,r).defaultPrevented)return;for(const t of e)t.hide();const n=this._getDimension();this._element.classList.remove(d),this._element.classList.add(f),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(f),this._element.classList.add(d,h),this._element.style[n]="",t.trigger(this._element,a)},s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[n]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(t.trigger(this._element,l).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,i.reflow(this._element),this._element.classList.add(f),this._element.classList.remove(d,h);for(const e of this._triggerArray){const t=n.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(f),this._element.classList.add(d),t.trigger(this._element,c)};this._element.style[e]="",this._queueCallback(s,this._element,!0)}_isShown(e=this._element){return e.classList.contains(h)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=i.getElement(e.parent),e}_getDimension(){return this._element.classList.contains(m)?_:b}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(y);for(const t of e){const e=n.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=n.find(g,this._config.parent);return n.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle(p,!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const n=x.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}return t.on(document,u,y,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of n.getMultipleElementsFromSelector(this))x.getOrCreateInstance(e,{toggle:!1}).toggle()})),i.defineJQueryPlugin(x),x}(T(),g(),S(),p())}({get exports(){return W},set exports(e){W=e}});var z=W,q={},V={get exports(){return q},set exports(e){q=e}},Q="top",K="bottom",U="right",X="left",Y="auto",J=[Q,K,U,X],G="start",Z="end",ee="clippingParents",te="viewport",ne="popper",ie="reference",se=J.reduce((function(e,t){return e.concat([t+"-"+G,t+"-"+Z])}),[]),oe=[].concat(J,[Y]).reduce((function(e,t){return e.concat([t,t+"-"+G,t+"-"+Z])}),[]),re="beforeRead",ae="read",le="afterRead",ce="beforeMain",ue="main",he="afterMain",de="beforeWrite",fe="write",pe="afterWrite",ge=[re,ae,le,ce,ue,he,de,fe,pe];function me(e){return e?(e.nodeName||"").toLowerCase():null}function _e(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function be(e){return e instanceof _e(e).Element||e instanceof Element}function ve(e){return e instanceof _e(e).HTMLElement||e instanceof HTMLElement}function ye(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _e(e).ShadowRoot||e instanceof ShadowRoot)}var we={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];ve(s)&&me(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});ve(i)&&me(i)&&(Object.assign(i.style,o),Object.keys(s).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ee(e){return e.split("-")[0]}var xe=Math.max,Ae=Math.min,Te=Math.round;function Oe(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ce(){return!/^((?!chrome|android).)*safari/i.test(Oe())}function ke(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&ve(e)&&(s=e.offsetWidth>0&&Te(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Te(i.height)/e.offsetHeight||1);var r=(be(e)?_e(e):window).visualViewport,a=!Ce()&&n,l=(i.left+(a&&r?r.offsetLeft:0))/s,c=(i.top+(a&&r?r.offsetTop:0))/o,u=i.width/s,h=i.height/o;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l,x:l,y:c}}function Le(e){var t=ke(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function De(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ye(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Se(e){return _e(e).getComputedStyle(e)}function Pe(e){return["table","td","th"].indexOf(me(e))>=0}function $e(e){return((be(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ie(e){return"html"===me(e)?e:e.assignedSlot||e.parentNode||(ye(e)?e.host:null)||$e(e)}function Ne(e){return ve(e)&&"fixed"!==Se(e).position?e.offsetParent:null}function je(e){for(var t=_e(e),n=Ne(e);n&&Pe(n)&&"static"===Se(n).position;)n=Ne(n);return n&&("html"===me(n)||"body"===me(n)&&"static"===Se(n).position)?t:n||function(e){var t=/firefox/i.test(Oe());if(/Trident/i.test(Oe())&&ve(e)&&"fixed"===Se(e).position)return null;var n=Ie(e);for(ye(n)&&(n=n.host);ve(n)&&["html","body"].indexOf(me(n))<0;){var i=Se(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function Me(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fe(e,t,n){return xe(e,Ae(t,n))}function He(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Re(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Be={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=Ee(n.placement),l=Me(a),c=[X,U].indexOf(a)>=0?"height":"width";if(o&&r){var u=function(e,t){return He("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Re(e,J))}(s.padding,n),h=Le(o),d="y"===l?Q:X,f="y"===l?K:U,p=n.rects.reference[c]+n.rects.reference[l]-r[l]-n.rects.popper[c],g=r[l]-n.rects.reference[l],m=je(o),_=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=p/2-g/2,v=u[d],y=_-h[c]-u[f],w=_/2-h[c]/2+b,E=Fe(v,w,y),x=l;n.modifiersData[i]=((t={})[x]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&De(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function We(e){return e.split("-")[1]}var ze={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qe(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,h=e.isFixed,d=r.x,f=void 0===d?0:d,p=r.y,g=void 0===p?0:p,m="function"==typeof u?u({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var _=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),v=X,y=Q,w=window;if(c){var E=je(n),x="clientHeight",A="clientWidth";if(E===_e(n)&&"static"!==Se(E=$e(n)).position&&"absolute"===a&&(x="scrollHeight",A="scrollWidth"),s===Q||(s===X||s===U)&&o===Z)y=K,g-=(h&&E===w&&w.visualViewport?w.visualViewport.height:E[x])-i.height,g*=l?1:-1;if(s===X||(s===Q||s===K)&&o===Z)v=U,f-=(h&&E===w&&w.visualViewport?w.visualViewport.width:E[A])-i.width,f*=l?1:-1}var T,O=Object.assign({position:a},c&&ze),C=!0===u?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Te(n*s)/s||0,y:Te(i*s)/s||0}}({x:f,y:g},_e(n)):{x:f,y:g};return f=C.x,g=C.y,l?Object.assign({},O,((T={})[y]=b?"0":"",T[v]=_?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",T)):Object.assign({},O,((t={})[y]=b?g+"px":"",t[v]=_?f+"px":"",t.transform="",t))}var Ve={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,o=n.adaptive,r=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:Ee(t.placement),variation:We(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,qe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,qe(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Qe={passive:!0};var Ke={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=void 0===s||s,r=i.resize,a=void 0===r||r,l=_e(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,Qe)})),a&&l.addEventListener("resize",n.update,Qe),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Qe)})),a&&l.removeEventListener("resize",n.update,Qe)}},data:{}},Ue={left:"right",right:"left",bottom:"top",top:"bottom"};function Xe(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ue[e]}))}var Ye={start:"end",end:"start"};function Je(e){return e.replace(/start|end/g,(function(e){return Ye[e]}))}function Ge(e){var t=_e(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ze(e){return ke($e(e)).left+Ge(e).scrollLeft}function et(e){var t=Se(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function tt(e){return["html","body","#document"].indexOf(me(e))>=0?e.ownerDocument.body:ve(e)&&et(e)?e:tt(Ie(e))}function nt(e,t){var n;void 0===t&&(t=[]);var i=tt(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),o=_e(i),r=s?[o].concat(o.visualViewport||[],et(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(nt(Ie(r)))}function it(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function st(e,t,n){return t===te?it(function(e,t){var n=_e(e),i=$e(e),s=n.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Ce();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Ze(e),y:l}}(e,n)):be(t)?function(e,t){var n=ke(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):it(function(e){var t,n=$e(e),i=Ge(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=xe(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=xe(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+Ze(e),l=-i.scrollTop;return"rtl"===Se(s||n).direction&&(a+=xe(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}($e(e)))}function ot(e,t,n,i){var s="clippingParents"===t?function(e){var t=nt(Ie(e)),n=["absolute","fixed"].indexOf(Se(e).position)>=0&&ve(e)?je(e):e;return be(n)?t.filter((function(e){return be(e)&&De(e,n)&&"body"!==me(e)})):[]}(e):[].concat(t),o=[].concat(s,[n]),r=o[0],a=o.reduce((function(t,n){var s=st(e,n,i);return t.top=xe(s.top,t.top),t.right=Ae(s.right,t.right),t.bottom=Ae(s.bottom,t.bottom),t.left=xe(s.left,t.left),t}),st(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function rt(e){var t,n=e.reference,i=e.element,s=e.placement,o=s?Ee(s):null,r=s?We(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case Q:t={x:a,y:n.y-i.height};break;case K:t={x:a,y:n.y+n.height};break;case U:t={x:n.x+n.width,y:l};break;case X:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?Me(o):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case G:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Z:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function at(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,o=n.strategy,r=void 0===o?e.strategy:o,a=n.boundary,l=void 0===a?ee:a,c=n.rootBoundary,u=void 0===c?te:c,h=n.elementContext,d=void 0===h?ne:h,f=n.altBoundary,p=void 0!==f&&f,g=n.padding,m=void 0===g?0:g,_=He("number"!=typeof m?m:Re(m,J)),b=d===ne?ie:ne,v=e.rects.popper,y=e.elements[p?b:d],w=ot(be(y)?y:y.contextElement||$e(e.elements.popper),l,u,r),E=ke(e.elements.reference),x=rt({reference:E,element:v,strategy:"absolute",placement:s}),A=it(Object.assign({},v,x)),T=d===ne?A:E,O={top:w.top-T.top+_.top,bottom:T.bottom-w.bottom+_.bottom,left:w.left-T.left+_.left,right:T.right-w.right+_.right},C=e.modifiersData.offset;if(d===ne&&C){var k=C[s];Object.keys(O).forEach((function(e){var t=[U,K].indexOf(e)>=0?1:-1,n=[Q,K].indexOf(e)>=0?"y":"x";O[e]+=k[n]*t}))}return O}function lt(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?oe:l,u=We(i),h=u?a?se:se.filter((function(e){return We(e)===u})):J,d=h.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=h);var f=d.reduce((function(t,n){return t[n]=at(e,{placement:n,boundary:s,rootBoundary:o,padding:r})[Ee(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var ct={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0===r||r,l=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,p=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,_=Ee(m),b=l||(_===m||!p?[Xe(m)]:function(e){if(Ee(e)===Y)return[];var t=Xe(e);return[Je(e),t,Je(t)]}(m)),v=[m].concat(b).reduce((function(e,n){return e.concat(Ee(n)===Y?lt(t,{placement:n,boundary:u,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),y=t.rects.reference,w=t.rects.popper,E=new Map,x=!0,A=v[0],T=0;T<v.length;T++){var O=v[T],C=Ee(O),k=We(O)===G,L=[Q,K].indexOf(C)>=0,D=L?"width":"height",S=at(t,{placement:O,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),P=L?k?U:X:k?K:Q;y[D]>w[D]&&(P=Xe(P));var $=Xe(P),I=[];if(o&&I.push(S[C]<=0),a&&I.push(S[P]<=0,S[$]<=0),I.every((function(e){return e}))){A=O,x=!1;break}E.set(O,I)}if(x)for(var N=function(e){var t=v.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},j=p?3:1;j>0;j--){if("break"===N(j))break}t.placement!==A&&(t.modifiersData[i]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ut(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ht(e){return[Q,U,K,X].some((function(t){return e[t]>=0}))}var dt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=at(t,{elementContext:"reference"}),a=at(t,{altBoundary:!0}),l=ut(r,i),c=ut(a,s,o),u=ht(l),h=ht(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}};var ft={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=void 0===s?[0,0]:s,r=oe.reduce((function(e,n){return e[n]=function(e,t,n){var i=Ee(e),s=[X,Q].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[X,U].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,t.rects,o),e}),{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}};var pt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=rt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var gt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0!==r&&r,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,h=n.padding,d=n.tether,f=void 0===d||d,p=n.tetherOffset,g=void 0===p?0:p,m=at(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),_=Ee(t.placement),b=We(t.placement),v=!b,y=Me(_),w="x"===y?"y":"x",E=t.modifiersData.popperOffsets,x=t.rects.reference,A=t.rects.popper,T="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,O="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(E){if(o){var L,D="y"===y?Q:X,S="y"===y?K:U,P="y"===y?"height":"width",$=E[y],I=$+m[D],N=$-m[S],j=f?-A[P]/2:0,M=b===G?x[P]:A[P],F=b===G?-A[P]:-x[P],H=t.elements.arrow,R=f&&H?Le(H):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=B[D],z=B[S],q=Fe(0,x[P],R[P]),V=v?x[P]/2-j-q-W-O.mainAxis:M-q-W-O.mainAxis,Y=v?-x[P]/2+j+q+z+O.mainAxis:F+q+z+O.mainAxis,J=t.elements.arrow&&je(t.elements.arrow),Z=J?"y"===y?J.clientTop||0:J.clientLeft||0:0,ee=null!=(L=null==C?void 0:C[y])?L:0,te=$+Y-ee,ne=Fe(f?Ae(I,$+V-ee-Z):I,$,f?xe(N,te):N);E[y]=ne,k[y]=ne-$}if(a){var ie,se="x"===y?Q:X,oe="x"===y?K:U,re=E[w],ae="y"===w?"height":"width",le=re+m[se],ce=re-m[oe],ue=-1!==[Q,X].indexOf(_),he=null!=(ie=null==C?void 0:C[w])?ie:0,de=ue?le:re-x[ae]-A[ae]-he+O.altAxis,fe=ue?re+x[ae]+A[ae]-he-O.altAxis:ce,pe=f&&ue?function(e,t,n){var i=Fe(e,t,n);return i>n?n:i}(de,re,fe):Fe(f?de:le,re,f?fe:ce);E[w]=pe,k[w]=pe-re}t.modifiersData[i]=k}},requiresIfExists:["offset"]};function mt(e,t,n){void 0===n&&(n=!1);var i,s,o=ve(t),r=ve(t)&&function(e){var t=e.getBoundingClientRect(),n=Te(t.width)/e.offsetWidth||1,i=Te(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=$e(t),l=ke(e,r,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==me(t)||et(a))&&(c=(i=t)!==_e(i)&&ve(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:Ge(i)),ve(t)?((u=ke(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Ze(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function _t(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||s(e)})),i}var bt={placement:"bottom",modifiers:[],strategy:"absolute"};function vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function yt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,o=void 0===s?bt:s;return function(e,t,n){void 0===n&&(n=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},bt,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;h(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:be(e)?nt(e):e.contextElement?nt(e.contextElement):[],popper:nt(t)};var r,c,d=function(e){var t=_t(e);return ge.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((r=[].concat(i,a.options.modifiers),c=r.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=d.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:u,options:i}),r=function(){};l.push(o||r)}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(vt(t,n)){a.rects={reference:mt(t,je(n),"fixed"===a.options.strategy),popper:Le(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],o=s.fn,r=s.options,l=void 0===r?{}:r,h=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:h,instance:u})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s())}))}))),r}),destroy:function(){h(),c=!0}};if(!vt(e,t))return u;function h(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var wt=yt(),Et=yt({defaultModifiers:[Ke,pt,Ve,we]}),xt=yt({defaultModifiers:[Ke,pt,Ve,we,ft,ct,gt,Be,dt]}),At=t(Object.freeze({__proto__:null,popperGenerator:yt,detectOverflow:at,createPopperBase:wt,createPopper:xt,createPopperLite:Et,top:Q,bottom:K,right:U,left:X,auto:Y,basePlacements:J,start:G,end:Z,clippingParents:ee,viewport:te,popper:ne,reference:ie,variationPlacements:se,placements:oe,beforeRead:re,read:ae,afterRead:le,beforeMain:ce,main:ue,afterMain:he,beforeWrite:de,write:fe,afterWrite:pe,modifierPhases:ge,applyStyles:we,arrow:Be,computeStyles:Ve,eventListeners:Ke,flip:ct,hide:dt,offset:ft,popperOffsets:pt,preventOverflow:gt})); | 48 | !function(e,t){e.exports=function(e,t,n,i){const s="collapse",o=".bs.collapse",r=`show${o}`,a=`shown${o}`,l=`hide${o}`,c=`hidden${o}`,u=`click${o}.data-api`,h="show",d="collapse",f="collapsing",p="collapsed",g=`:scope .${d} .${d}`,m="collapse-horizontal",_="width",b="height",v=".collapse.show, .collapse.collapsing",y='[data-bs-toggle="collapse"]',w={parent:null,toggle:!0},E={parent:"(null|element)",toggle:"boolean"};class x extends e{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=n.find(y);for(const e of i){const t=n.getSelectorFromElement(e),i=n.find(t).filter((e=>e===this._element));null!==t&&i.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return w}static get DefaultType(){return E}static get NAME(){return s}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(v).filter((e=>e!==this._element)).map((e=>x.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(t.trigger(this._element,r).defaultPrevented)return;for(const t of e)t.hide();const n=this._getDimension();this._element.classList.remove(d),this._element.classList.add(f),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(f),this._element.classList.add(d,h),this._element.style[n]="",t.trigger(this._element,a)},s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[n]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(t.trigger(this._element,l).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,i.reflow(this._element),this._element.classList.add(f),this._element.classList.remove(d,h);for(const e of this._triggerArray){const t=n.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(f),this._element.classList.add(d),t.trigger(this._element,c)};this._element.style[e]="",this._queueCallback(s,this._element,!0)}_isShown(e=this._element){return e.classList.contains(h)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=i.getElement(e.parent),e}_getDimension(){return this._element.classList.contains(m)?_:b}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(y);for(const t of e){const e=n.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=n.find(g,this._config.parent);return n.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle(p,!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const n=x.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}return t.on(document,u,y,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of n.getMultipleElementsFromSelector(this))x.getOrCreateInstance(e,{toggle:!1}).toggle()})),i.defineJQueryPlugin(x),x}(T(),g(),S(),p())}({get exports(){return W},set exports(e){W=e}});var z=W,q={},V={get exports(){return q},set exports(e){q=e}},Q="top",K="bottom",U="right",X="left",Y="auto",J=[Q,K,U,X],G="start",Z="end",ee="clippingParents",te="viewport",ne="popper",ie="reference",se=J.reduce((function(e,t){return e.concat([t+"-"+G,t+"-"+Z])}),[]),oe=[].concat(J,[Y]).reduce((function(e,t){return e.concat([t,t+"-"+G,t+"-"+Z])}),[]),re="beforeRead",ae="read",le="afterRead",ce="beforeMain",ue="main",he="afterMain",de="beforeWrite",fe="write",pe="afterWrite",ge=[re,ae,le,ce,ue,he,de,fe,pe];function me(e){return e?(e.nodeName||"").toLowerCase():null}function _e(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function be(e){return e instanceof _e(e).Element||e instanceof Element}function ve(e){return e instanceof _e(e).HTMLElement||e instanceof HTMLElement}function ye(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _e(e).ShadowRoot||e instanceof ShadowRoot)}var we={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];ve(s)&&me(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});ve(i)&&me(i)&&(Object.assign(i.style,o),Object.keys(s).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ee(e){return e.split("-")[0]}var xe=Math.max,Ae=Math.min,Te=Math.round;function Oe(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ce(){return!/^((?!chrome|android).)*safari/i.test(Oe())}function ke(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&ve(e)&&(s=e.offsetWidth>0&&Te(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Te(i.height)/e.offsetHeight||1);var r=(be(e)?_e(e):window).visualViewport,a=!Ce()&&n,l=(i.left+(a&&r?r.offsetLeft:0))/s,c=(i.top+(a&&r?r.offsetTop:0))/o,u=i.width/s,h=i.height/o;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l,x:l,y:c}}function Le(e){var t=ke(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function De(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ye(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Se(e){return _e(e).getComputedStyle(e)}function Pe(e){return["table","td","th"].indexOf(me(e))>=0}function $e(e){return((be(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ie(e){return"html"===me(e)?e:e.assignedSlot||e.parentNode||(ye(e)?e.host:null)||$e(e)}function je(e){return ve(e)&&"fixed"!==Se(e).position?e.offsetParent:null}function Ne(e){for(var t=_e(e),n=je(e);n&&Pe(n)&&"static"===Se(n).position;)n=je(n);return n&&("html"===me(n)||"body"===me(n)&&"static"===Se(n).position)?t:n||function(e){var t=/firefox/i.test(Oe());if(/Trident/i.test(Oe())&&ve(e)&&"fixed"===Se(e).position)return null;var n=Ie(e);for(ye(n)&&(n=n.host);ve(n)&&["html","body"].indexOf(me(n))<0;){var i=Se(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function Me(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fe(e,t,n){return xe(e,Ae(t,n))}function He(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Re(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Be={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=Ee(n.placement),l=Me(a),c=[X,U].indexOf(a)>=0?"height":"width";if(o&&r){var u=function(e,t){return He("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Re(e,J))}(s.padding,n),h=Le(o),d="y"===l?Q:X,f="y"===l?K:U,p=n.rects.reference[c]+n.rects.reference[l]-r[l]-n.rects.popper[c],g=r[l]-n.rects.reference[l],m=Ne(o),_=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=p/2-g/2,v=u[d],y=_-h[c]-u[f],w=_/2-h[c]/2+b,E=Fe(v,w,y),x=l;n.modifiersData[i]=((t={})[x]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&De(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function We(e){return e.split("-")[1]}var ze={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qe(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,h=e.isFixed,d=r.x,f=void 0===d?0:d,p=r.y,g=void 0===p?0:p,m="function"==typeof u?u({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var _=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),v=X,y=Q,w=window;if(c){var E=Ne(n),x="clientHeight",A="clientWidth";if(E===_e(n)&&"static"!==Se(E=$e(n)).position&&"absolute"===a&&(x="scrollHeight",A="scrollWidth"),s===Q||(s===X||s===U)&&o===Z)y=K,g-=(h&&E===w&&w.visualViewport?w.visualViewport.height:E[x])-i.height,g*=l?1:-1;if(s===X||(s===Q||s===K)&&o===Z)v=U,f-=(h&&E===w&&w.visualViewport?w.visualViewport.width:E[A])-i.width,f*=l?1:-1}var T,O=Object.assign({position:a},c&&ze),C=!0===u?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Te(n*s)/s||0,y:Te(i*s)/s||0}}({x:f,y:g},_e(n)):{x:f,y:g};return f=C.x,g=C.y,l?Object.assign({},O,((T={})[y]=b?"0":"",T[v]=_?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",T)):Object.assign({},O,((t={})[y]=b?g+"px":"",t[v]=_?f+"px":"",t.transform="",t))}var Ve={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,o=n.adaptive,r=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:Ee(t.placement),variation:We(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,qe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,qe(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Qe={passive:!0};var Ke={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=void 0===s||s,r=i.resize,a=void 0===r||r,l=_e(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,Qe)})),a&&l.addEventListener("resize",n.update,Qe),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Qe)})),a&&l.removeEventListener("resize",n.update,Qe)}},data:{}},Ue={left:"right",right:"left",bottom:"top",top:"bottom"};function Xe(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ue[e]}))}var Ye={start:"end",end:"start"};function Je(e){return e.replace(/start|end/g,(function(e){return Ye[e]}))}function Ge(e){var t=_e(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ze(e){return ke($e(e)).left+Ge(e).scrollLeft}function et(e){var t=Se(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function tt(e){return["html","body","#document"].indexOf(me(e))>=0?e.ownerDocument.body:ve(e)&&et(e)?e:tt(Ie(e))}function nt(e,t){var n;void 0===t&&(t=[]);var i=tt(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),o=_e(i),r=s?[o].concat(o.visualViewport||[],et(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(nt(Ie(r)))}function it(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function st(e,t,n){return t===te?it(function(e,t){var n=_e(e),i=$e(e),s=n.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Ce();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Ze(e),y:l}}(e,n)):be(t)?function(e,t){var n=ke(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):it(function(e){var t,n=$e(e),i=Ge(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=xe(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=xe(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+Ze(e),l=-i.scrollTop;return"rtl"===Se(s||n).direction&&(a+=xe(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}($e(e)))}function ot(e,t,n,i){var s="clippingParents"===t?function(e){var t=nt(Ie(e)),n=["absolute","fixed"].indexOf(Se(e).position)>=0&&ve(e)?Ne(e):e;return be(n)?t.filter((function(e){return be(e)&&De(e,n)&&"body"!==me(e)})):[]}(e):[].concat(t),o=[].concat(s,[n]),r=o[0],a=o.reduce((function(t,n){var s=st(e,n,i);return t.top=xe(s.top,t.top),t.right=Ae(s.right,t.right),t.bottom=Ae(s.bottom,t.bottom),t.left=xe(s.left,t.left),t}),st(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function rt(e){var t,n=e.reference,i=e.element,s=e.placement,o=s?Ee(s):null,r=s?We(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case Q:t={x:a,y:n.y-i.height};break;case K:t={x:a,y:n.y+n.height};break;case U:t={x:n.x+n.width,y:l};break;case X:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?Me(o):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case G:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Z:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function at(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,o=n.strategy,r=void 0===o?e.strategy:o,a=n.boundary,l=void 0===a?ee:a,c=n.rootBoundary,u=void 0===c?te:c,h=n.elementContext,d=void 0===h?ne:h,f=n.altBoundary,p=void 0!==f&&f,g=n.padding,m=void 0===g?0:g,_=He("number"!=typeof m?m:Re(m,J)),b=d===ne?ie:ne,v=e.rects.popper,y=e.elements[p?b:d],w=ot(be(y)?y:y.contextElement||$e(e.elements.popper),l,u,r),E=ke(e.elements.reference),x=rt({reference:E,element:v,strategy:"absolute",placement:s}),A=it(Object.assign({},v,x)),T=d===ne?A:E,O={top:w.top-T.top+_.top,bottom:T.bottom-w.bottom+_.bottom,left:w.left-T.left+_.left,right:T.right-w.right+_.right},C=e.modifiersData.offset;if(d===ne&&C){var k=C[s];Object.keys(O).forEach((function(e){var t=[U,K].indexOf(e)>=0?1:-1,n=[Q,K].indexOf(e)>=0?"y":"x";O[e]+=k[n]*t}))}return O}function lt(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?oe:l,u=We(i),h=u?a?se:se.filter((function(e){return We(e)===u})):J,d=h.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=h);var f=d.reduce((function(t,n){return t[n]=at(e,{placement:n,boundary:s,rootBoundary:o,padding:r})[Ee(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var ct={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0===r||r,l=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,p=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,_=Ee(m),b=l||(_===m||!p?[Xe(m)]:function(e){if(Ee(e)===Y)return[];var t=Xe(e);return[Je(e),t,Je(t)]}(m)),v=[m].concat(b).reduce((function(e,n){return e.concat(Ee(n)===Y?lt(t,{placement:n,boundary:u,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),y=t.rects.reference,w=t.rects.popper,E=new Map,x=!0,A=v[0],T=0;T<v.length;T++){var O=v[T],C=Ee(O),k=We(O)===G,L=[Q,K].indexOf(C)>=0,D=L?"width":"height",S=at(t,{placement:O,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),P=L?k?U:X:k?K:Q;y[D]>w[D]&&(P=Xe(P));var $=Xe(P),I=[];if(o&&I.push(S[C]<=0),a&&I.push(S[P]<=0,S[$]<=0),I.every((function(e){return e}))){A=O,x=!1;break}E.set(O,I)}if(x)for(var j=function(e){var t=v.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},N=p?3:1;N>0;N--){if("break"===j(N))break}t.placement!==A&&(t.modifiersData[i]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ut(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ht(e){return[Q,U,K,X].some((function(t){return e[t]>=0}))}var dt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=at(t,{elementContext:"reference"}),a=at(t,{altBoundary:!0}),l=ut(r,i),c=ut(a,s,o),u=ht(l),h=ht(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}};var ft={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=void 0===s?[0,0]:s,r=oe.reduce((function(e,n){return e[n]=function(e,t,n){var i=Ee(e),s=[X,Q].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[X,U].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,t.rects,o),e}),{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}};var pt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=rt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var gt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0!==r&&r,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,h=n.padding,d=n.tether,f=void 0===d||d,p=n.tetherOffset,g=void 0===p?0:p,m=at(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),_=Ee(t.placement),b=We(t.placement),v=!b,y=Me(_),w="x"===y?"y":"x",E=t.modifiersData.popperOffsets,x=t.rects.reference,A=t.rects.popper,T="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,O="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(E){if(o){var L,D="y"===y?Q:X,S="y"===y?K:U,P="y"===y?"height":"width",$=E[y],I=$+m[D],j=$-m[S],N=f?-A[P]/2:0,M=b===G?x[P]:A[P],F=b===G?-A[P]:-x[P],H=t.elements.arrow,R=f&&H?Le(H):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=B[D],z=B[S],q=Fe(0,x[P],R[P]),V=v?x[P]/2-N-q-W-O.mainAxis:M-q-W-O.mainAxis,Y=v?-x[P]/2+N+q+z+O.mainAxis:F+q+z+O.mainAxis,J=t.elements.arrow&&Ne(t.elements.arrow),Z=J?"y"===y?J.clientTop||0:J.clientLeft||0:0,ee=null!=(L=null==C?void 0:C[y])?L:0,te=$+Y-ee,ne=Fe(f?Ae(I,$+V-ee-Z):I,$,f?xe(j,te):j);E[y]=ne,k[y]=ne-$}if(a){var ie,se="x"===y?Q:X,oe="x"===y?K:U,re=E[w],ae="y"===w?"height":"width",le=re+m[se],ce=re-m[oe],ue=-1!==[Q,X].indexOf(_),he=null!=(ie=null==C?void 0:C[w])?ie:0,de=ue?le:re-x[ae]-A[ae]-he+O.altAxis,fe=ue?re+x[ae]+A[ae]-he-O.altAxis:ce,pe=f&&ue?function(e,t,n){var i=Fe(e,t,n);return i>n?n:i}(de,re,fe):Fe(f?de:le,re,f?fe:ce);E[w]=pe,k[w]=pe-re}t.modifiersData[i]=k}},requiresIfExists:["offset"]};function mt(e,t,n){void 0===n&&(n=!1);var i,s,o=ve(t),r=ve(t)&&function(e){var t=e.getBoundingClientRect(),n=Te(t.width)/e.offsetWidth||1,i=Te(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=$e(t),l=ke(e,r,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==me(t)||et(a))&&(c=(i=t)!==_e(i)&&ve(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:Ge(i)),ve(t)?((u=ke(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Ze(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function _t(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||s(e)})),i}var bt={placement:"bottom",modifiers:[],strategy:"absolute"};function vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function yt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,o=void 0===s?bt:s;return function(e,t,n){void 0===n&&(n=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},bt,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;h(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:be(e)?nt(e):e.contextElement?nt(e.contextElement):[],popper:nt(t)};var r,c,d=function(e){var t=_t(e);return ge.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((r=[].concat(i,a.options.modifiers),c=r.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=d.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:u,options:i}),r=function(){};l.push(o||r)}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(vt(t,n)){a.rects={reference:mt(t,Ne(n),"fixed"===a.options.strategy),popper:Le(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],o=s.fn,r=s.options,l=void 0===r?{}:r,h=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:h,instance:u})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s())}))}))),r}),destroy:function(){h(),c=!0}};if(!vt(e,t))return u;function h(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var wt=yt(),Et=yt({defaultModifiers:[Ke,pt,Ve,we]}),xt=yt({defaultModifiers:[Ke,pt,Ve,we,ft,ct,gt,Be,dt]}),At=t(Object.freeze({__proto__:null,popperGenerator:yt,detectOverflow:at,createPopperBase:wt,createPopper:xt,createPopperLite:Et,top:Q,bottom:K,right:U,left:X,auto:Y,basePlacements:J,start:G,end:Z,clippingParents:ee,viewport:te,popper:ne,reference:ie,variationPlacements:se,placements:oe,beforeRead:re,read:ae,afterRead:le,beforeMain:ce,main:ue,afterMain:he,beforeWrite:de,write:fe,afterWrite:pe,modifierPhases:ge,applyStyles:we,arrow:Be,computeStyles:Ve,eventListeners:Ke,flip:ct,hide:dt,offset:ft,popperOffsets:pt,preventOverflow:gt})); |
| 49 | /*! | 49 | /*! |
| 50 | * Bootstrap dropdown.js v5.3.1 (https://getbootstrap.com/) | 50 | * Bootstrap dropdown.js v5.3.1 (https://getbootstrap.com/) |
| 51 | * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) | 51 | * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) |
| 52 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) | 52 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) |
| 53 | */ | 53 | */ |
| 54 | !function(e,t){e.exports=function(e,t,n,i,s,o){function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const a=r(e),l="dropdown",c=".bs.dropdown",u=".data-api",h="Escape",d="Tab",f="ArrowUp",p="ArrowDown",g=2,m=`hide${c}`,_=`hidden${c}`,b=`show${c}`,v=`shown${c}`,y=`click${c}${u}`,w=`keydown${c}${u}`,E=`keyup${c}${u}`,x="show",A="dropup",T="dropend",O="dropstart",C="dropup-center",k="dropdown-center",L='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',D=`${L}.${x}`,S=".dropdown-menu",P=".navbar",$=".navbar-nav",I=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",N=o.isRTL()?"top-end":"top-start",j=o.isRTL()?"top-start":"top-end",M=o.isRTL()?"bottom-end":"bottom-start",F=o.isRTL()?"bottom-start":"bottom-end",H=o.isRTL()?"left-start":"right-start",R=o.isRTL()?"right-start":"left-start",B="top",W="bottom",z={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},q={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class V extends t{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=s.next(this._element,S)[0]||s.prev(this._element,S)[0]||s.findOne(S,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return z}static get DefaultType(){return q}static get NAME(){return l}toggle(){return this._isShown()?this.hide():this.show()}show(){if(o.isDisabled(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!n.trigger(this._element,b,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest($))for(const e of[].concat(...document.body.children))n.on(e,"mouseover",o.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(x),this._element.classList.add(x),n.trigger(this._element,v,e)}}hide(){if(o.isDisabled(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!n.trigger(this._element,m,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))n.off(e,"mouseover",o.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(x),this._element.classList.remove(x),this._element.setAttribute("aria-expanded","false"),i.removeDataAttribute(this._menu,"popper"),n.trigger(this._element,_,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!o.isElement(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${l.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===a)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:o.isElement(this._config.reference)?e=o.getElement(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=a.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(x)}_getPlacement(){const e=this._parent;if(e.classList.contains(T))return H;if(e.classList.contains(O))return R;if(e.classList.contains(C))return B;if(e.classList.contains(k))return W;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains(A)?t?j:N:t?F:M}_detectNavbar(){return null!==this._element.closest(P)}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(i.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...o.execute(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=s.find(I,this._menu).filter((e=>o.isVisible(e)));n.length&&o.getNextActiveElement(n,t,e===p,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=V.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(e.button===g||"keyup"===e.type&&e.key!==d)return;const t=s.find(D);for(const n of t){const t=V.getInstance(n);if(!t||!1===t._config.autoClose)continue;const i=e.composedPath(),s=i.includes(t._menu);if(i.includes(t._element)||"inside"===t._config.autoClose&&!s||"outside"===t._config.autoClose&&s)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&e.key===d||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n=e.key===h,i=[f,p].includes(e.key);if(!i&&!n)return;if(t&&!n)return;e.preventDefault();const o=this.matches(L)?this:s.prev(this,L)[0]||s.next(this,L)[0]||s.findOne(L,e.delegateTarget.parentNode),r=V.getOrCreateInstance(o);if(i)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),o.focus())}}return n.on(document,w,L,V.dataApiKeydownHandler),n.on(document,w,S,V.dataApiKeydownHandler),n.on(document,y,V.clearMenus),n.on(document,E,V.clearMenus),n.on(document,y,L,(function(e){e.preventDefault(),V.getOrCreateInstance(this).toggle()})),o.defineJQueryPlugin(V),V}(At,T(),g(),x(),S(),p())}(V);var Tt,Ot=q,Ct={},kt={},Lt={get exports(){return kt},set exports(e){kt=e}};function Dt(){return Tt||(Tt=1,function(e,t){e.exports=function(e,t,n){const i="backdrop",s="fade",o="show",r=`mousedown.bs.${i}`,a={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},l={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class c extends t{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return a}static get DefaultType(){return l}static get NAME(){return i}show(e){if(!this._config.isVisible)return void n.execute(e);this._append();const t=this._getElement();this._config.isAnimated&&n.reflow(t),t.classList.add(o),this._emulateAnimation((()=>{n.execute(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(o),this._emulateAnimation((()=>{this.dispose(),n.execute(e)}))):n.execute(e)}dispose(){this._isAppended&&(e.off(this._element,r),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(s),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=n.getElement(e.rootElement),e}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),e.on(t,r,(()=>{n.execute(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){n.executeAfterTransition(e,this._getElement(),this._config.isAnimated)}}return c}(g(),A(),p())}(Lt)),kt}var St,Pt={},$t={get exports(){return Pt},set exports(e){Pt=e}};function It(){return St||(St=1,function(e,t){e.exports=function(e,t,n){const i="focustrap",s=".bs.focustrap",o=`focusin${s}`,r=`keydown.tab${s}`,a="Tab",l="forward",c="backward",u={autofocus:!0,trapElement:null},h={autofocus:"boolean",trapElement:"element"};class d extends n{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return u}static get DefaultType(){return h}static get NAME(){return i}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),e.off(document,s),e.on(document,o,(e=>this._handleFocusin(e))),e.on(document,r,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,e.off(document,s))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const i=t.focusableChildren(n);0===i.length?n.focus():this._lastTabNavDirection===c?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){e.key===a&&(this._lastTabNavDirection=e.shiftKey?c:l)}}return d}(g(),S(),A())}($t)),Pt}var Nt,jt={},Mt={get exports(){return jt},set exports(e){jt=e}};function Ft(){return Nt||(Nt=1,function(e,t){e.exports=function(e,t,n){const i=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",s=".sticky-top",o="padding-right",r="margin-right";class a{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,o,(t=>t+e)),this._setElementAttributes(i,o,(t=>t+e)),this._setElementAttributes(s,r,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,o),this._resetElementAttributes(i,o),this._resetElementAttributes(s,r)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth(),s=e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(s))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(t,n){const i=t.style.getPropertyValue(n);i&&e.setDataAttribute(t,n,i)}_resetElementAttributes(t,n){const i=t=>{const i=e.getDataAttribute(t,n);null!==i?(e.removeDataAttribute(t,n),t.style.setProperty(n,i)):t.style.removeProperty(n)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(e,i){if(n.isElement(e))i(e);else for(const n of t.find(e,this._element))i(n)}}return a}(x(),S(),p())}(Mt)),jt} | 54 | !function(e,t){e.exports=function(e,t,n,i,s,o){function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const a=r(e),l="dropdown",c=".bs.dropdown",u=".data-api",h="Escape",d="Tab",f="ArrowUp",p="ArrowDown",g=2,m=`hide${c}`,_=`hidden${c}`,b=`show${c}`,v=`shown${c}`,y=`click${c}${u}`,w=`keydown${c}${u}`,E=`keyup${c}${u}`,x="show",A="dropup",T="dropend",O="dropstart",C="dropup-center",k="dropdown-center",L='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',D=`${L}.${x}`,S=".dropdown-menu",P=".navbar",$=".navbar-nav",I=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",j=o.isRTL()?"top-end":"top-start",N=o.isRTL()?"top-start":"top-end",M=o.isRTL()?"bottom-end":"bottom-start",F=o.isRTL()?"bottom-start":"bottom-end",H=o.isRTL()?"left-start":"right-start",R=o.isRTL()?"right-start":"left-start",B="top",W="bottom",z={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},q={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class V extends t{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=s.next(this._element,S)[0]||s.prev(this._element,S)[0]||s.findOne(S,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return z}static get DefaultType(){return q}static get NAME(){return l}toggle(){return this._isShown()?this.hide():this.show()}show(){if(o.isDisabled(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!n.trigger(this._element,b,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest($))for(const e of[].concat(...document.body.children))n.on(e,"mouseover",o.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(x),this._element.classList.add(x),n.trigger(this._element,v,e)}}hide(){if(o.isDisabled(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!n.trigger(this._element,m,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))n.off(e,"mouseover",o.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(x),this._element.classList.remove(x),this._element.setAttribute("aria-expanded","false"),i.removeDataAttribute(this._menu,"popper"),n.trigger(this._element,_,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!o.isElement(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${l.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===a)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:o.isElement(this._config.reference)?e=o.getElement(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=a.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(x)}_getPlacement(){const e=this._parent;if(e.classList.contains(T))return H;if(e.classList.contains(O))return R;if(e.classList.contains(C))return B;if(e.classList.contains(k))return W;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains(A)?t?N:j:t?F:M}_detectNavbar(){return null!==this._element.closest(P)}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(i.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...o.execute(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=s.find(I,this._menu).filter((e=>o.isVisible(e)));n.length&&o.getNextActiveElement(n,t,e===p,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=V.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(e.button===g||"keyup"===e.type&&e.key!==d)return;const t=s.find(D);for(const n of t){const t=V.getInstance(n);if(!t||!1===t._config.autoClose)continue;const i=e.composedPath(),s=i.includes(t._menu);if(i.includes(t._element)||"inside"===t._config.autoClose&&!s||"outside"===t._config.autoClose&&s)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&e.key===d||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n=e.key===h,i=[f,p].includes(e.key);if(!i&&!n)return;if(t&&!n)return;e.preventDefault();const o=this.matches(L)?this:s.prev(this,L)[0]||s.next(this,L)[0]||s.findOne(L,e.delegateTarget.parentNode),r=V.getOrCreateInstance(o);if(i)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),o.focus())}}return n.on(document,w,L,V.dataApiKeydownHandler),n.on(document,w,S,V.dataApiKeydownHandler),n.on(document,y,V.clearMenus),n.on(document,E,V.clearMenus),n.on(document,y,L,(function(e){e.preventDefault(),V.getOrCreateInstance(this).toggle()})),o.defineJQueryPlugin(V),V}(At,T(),g(),x(),S(),p())}(V);var Tt,Ot=q,Ct={},kt={},Lt={get exports(){return kt},set exports(e){kt=e}};function Dt(){return Tt||(Tt=1,function(e,t){e.exports=function(e,t,n){const i="backdrop",s="fade",o="show",r=`mousedown.bs.${i}`,a={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},l={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class c extends t{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return a}static get DefaultType(){return l}static get NAME(){return i}show(e){if(!this._config.isVisible)return void n.execute(e);this._append();const t=this._getElement();this._config.isAnimated&&n.reflow(t),t.classList.add(o),this._emulateAnimation((()=>{n.execute(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(o),this._emulateAnimation((()=>{this.dispose(),n.execute(e)}))):n.execute(e)}dispose(){this._isAppended&&(e.off(this._element,r),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(s),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=n.getElement(e.rootElement),e}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),e.on(t,r,(()=>{n.execute(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){n.executeAfterTransition(e,this._getElement(),this._config.isAnimated)}}return c}(g(),A(),p())}(Lt)),kt}var St,Pt={},$t={get exports(){return Pt},set exports(e){Pt=e}};function It(){return St||(St=1,function(e,t){e.exports=function(e,t,n){const i="focustrap",s=".bs.focustrap",o=`focusin${s}`,r=`keydown.tab${s}`,a="Tab",l="forward",c="backward",u={autofocus:!0,trapElement:null},h={autofocus:"boolean",trapElement:"element"};class d extends n{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return u}static get DefaultType(){return h}static get NAME(){return i}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),e.off(document,s),e.on(document,o,(e=>this._handleFocusin(e))),e.on(document,r,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,e.off(document,s))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const i=t.focusableChildren(n);0===i.length?n.focus():this._lastTabNavDirection===c?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){e.key===a&&(this._lastTabNavDirection=e.shiftKey?c:l)}}return d}(g(),S(),A())}($t)),Pt}var jt,Nt={},Mt={get exports(){return Nt},set exports(e){Nt=e}};function Ft(){return jt||(jt=1,function(e,t){e.exports=function(e,t,n){const i=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",s=".sticky-top",o="padding-right",r="margin-right";class a{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,o,(t=>t+e)),this._setElementAttributes(i,o,(t=>t+e)),this._setElementAttributes(s,r,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,o),this._resetElementAttributes(i,o),this._resetElementAttributes(s,r)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth(),s=e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(s))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(t,n){const i=t.style.getPropertyValue(n);i&&e.setDataAttribute(t,n,i)}_resetElementAttributes(t,n){const i=t=>{const i=e.getDataAttribute(t,n);null!==i?(e.removeDataAttribute(t,n),t.style.setProperty(n,i)):t.style.removeProperty(n)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(e,i){if(n.isElement(e))i(e);else for(const n of t.find(e,this._element))i(n)}}return a}(x(),S(),p())}(Mt)),Nt} |
| 55 | /*! | 55 | /*! |
| 56 | * Bootstrap modal.js v5.3.1 (https://getbootstrap.com/) | 56 | * Bootstrap modal.js v5.3.1 (https://getbootstrap.com/) |
| 57 | * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) | 57 | * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) |
| ... | @@ -90,5 +90,5 @@ | ... | @@ -90,5 +90,5 @@ |
| 90 | * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) | 90 | * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) |
| 91 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) | 91 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) |
| 92 | */ | 92 | */ |
| 93 | !function(e,t){e.exports=function(e,t,n,i){const s="toast",o=".bs.toast",r=`mouseover${o}`,a=`mouseout${o}`,l=`focusin${o}`,c=`focusout${o}`,u=`hide${o}`,h=`hidden${o}`,d=`show${o}`,f=`shown${o}`,p="fade",g="hide",m="show",_="showing",b={animation:"boolean",autohide:"boolean",delay:"number"},v={animation:!0,autohide:!0,delay:5e3};class y extends e{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return v}static get DefaultType(){return b}static get NAME(){return s}show(){if(t.trigger(this._element,d).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(p);const e=()=>{this._element.classList.remove(_),t.trigger(this._element,f),this._maybeScheduleHide()};this._element.classList.remove(g),i.reflow(this._element),this._element.classList.add(m,_),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown())return;if(t.trigger(this._element,u).defaultPrevented)return;const e=()=>{this._element.classList.add(g),this._element.classList.remove(_,m),t.trigger(this._element,h)};this._element.classList.add(_),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(m),super.dispose()}isShown(){return this._element.classList.contains(m)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){t.on(this._element,r,(e=>this._onInteraction(e,!0))),t.on(this._element,a,(e=>this._onInteraction(e,!1))),t.on(this._element,l,(e=>this._onInteraction(e,!0))),t.on(this._element,c,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=y.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return n.enableDismissTrigger(y),i.defineJQueryPlugin(y),y}(T(),g(),P(),p())}({get exports(){return on},set exports(e){on=e}});var rn,an,ln,cn=on;rn=navigator.userAgent.toLowerCase().indexOf("webkit")>-1,an=navigator.userAgent.toLowerCase().indexOf("opera")>-1,ln=navigator.userAgent.toLowerCase().indexOf("msie")>-1,(rn||an||ln)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",(function(){var e,t=location.hash.substring(1);/^[A-z0-9_-]+$/.test(t)&&(e=document.getElementById(t))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())}),!1),jQuery(document).ready((function(e){e(".story-body-image").each((function(t){e(this).parents(".wp-block-column").attr("style","background-image:url("+e(this).children("img").attr("src")+");"),e(this).children("img").hide()})),e(".story-body-image-full").each((function(t){e(this).parents(".wp-block-columns").attr("style","background-image:url("+e(this).children("img").attr("src")+");"),e(this).children("img").hide()}))})),e.Alert=$,e.Button=j,e.Carousel=B,e.Collapse=z,e.Dropdown=Ot,e.Modal=Ht,e.Offcanvas=Wt,e.Popover=Zt,e.Scrollspy=tn,e.Tab=sn,e.Toast=cn,e.Tooltip=Gt,Object.defineProperty(e,"__esModule",{value:!0})})); | 93 | !function(e,t){e.exports=function(e,t,n,i){const s="toast",o=".bs.toast",r=`mouseover${o}`,a=`mouseout${o}`,l=`focusin${o}`,c=`focusout${o}`,u=`hide${o}`,h=`hidden${o}`,d=`show${o}`,f=`shown${o}`,p="fade",g="hide",m="show",_="showing",b={animation:"boolean",autohide:"boolean",delay:"number"},v={animation:!0,autohide:!0,delay:5e3};class y extends e{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return v}static get DefaultType(){return b}static get NAME(){return s}show(){if(t.trigger(this._element,d).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(p);const e=()=>{this._element.classList.remove(_),t.trigger(this._element,f),this._maybeScheduleHide()};this._element.classList.remove(g),i.reflow(this._element),this._element.classList.add(m,_),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown())return;if(t.trigger(this._element,u).defaultPrevented)return;const e=()=>{this._element.classList.add(g),this._element.classList.remove(_,m),t.trigger(this._element,h)};this._element.classList.add(_),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(m),super.dispose()}isShown(){return this._element.classList.contains(m)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){t.on(this._element,r,(e=>this._onInteraction(e,!0))),t.on(this._element,a,(e=>this._onInteraction(e,!1))),t.on(this._element,l,(e=>this._onInteraction(e,!0))),t.on(this._element,c,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=y.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return n.enableDismissTrigger(y),i.defineJQueryPlugin(y),y}(T(),g(),P(),p())}({get exports(){return on},set exports(e){on=e}});var rn,an,ln,cn=on;rn=navigator.userAgent.toLowerCase().indexOf("webkit")>-1,an=navigator.userAgent.toLowerCase().indexOf("opera")>-1,ln=navigator.userAgent.toLowerCase().indexOf("msie")>-1,(rn||an||ln)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",(function(){var e,t=location.hash.substring(1);/^[A-z0-9_-]+$/.test(t)&&(e=document.getElementById(t))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())}),!1),jQuery(document).ready((function(e){e(".story-body-image").each((function(t){e(this).parents(".wp-block-column").attr("style","background-image:url("+e(this).children("img").attr("src")+");"),e(this).children("img").hide()})),e(".story-body-image-full").each((function(t){e(this).parents(".wp-block-columns").attr("style","background-image:url("+e(this).children("img").attr("src")+");"),e(this).children("img").hide()})),document.addEventListener("wpcf7mailsent",(function(e){"6"==e.detail.contactFormId&&jQuery("#contest_popup").modal("show"),"108"==e.detail.contactFormId&&jQuery("#contact_popup").modal("show")}),!1)})),e.Alert=$,e.Button=N,e.Carousel=B,e.Collapse=z,e.Dropdown=Ot,e.Modal=Ht,e.Offcanvas=Wt,e.Popover=Zt,e.Scrollspy=tn,e.Tab=sn,e.Toast=cn,e.Tooltip=Gt,Object.defineProperty(e,"__esModule",{value:!0})})); |
| 94 | //# sourceMappingURL=child-theme.min.js.map | 94 | //# sourceMappingURL=child-theme.min.js.map |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
This diff could not be displayed because it is too large.
| ... | @@ -9,5 +9,17 @@ jQuery( document ).ready(function($) { | ... | @@ -9,5 +9,17 @@ jQuery( document ).ready(function($) { |
| 9 | $(this).parents('.wp-block-columns').attr("style", 'background-image:url('+$(this).children('img').attr('src')+');') | 9 | $(this).parents('.wp-block-columns').attr("style", 'background-image:url('+$(this).children('img').attr('src')+');') |
| 10 | $(this).children('img').hide(); | 10 | $(this).children('img').hide(); |
| 11 | 11 | ||
| 12 | }) | 12 | }); |
| 13 | |||
| 14 | document.addEventListener( 'wpcf7mailsent', function( event ) { | ||
| 15 | if ( '6' == event.detail.contactFormId ) { // Change 34 to the ID of the form | ||
| 16 | jQuery('#contest_popup').modal('show'); //this is the bootstrap modal popup id | ||
| 17 | } | ||
| 18 | if ( '108' == event.detail.contactFormId ) { // Change 34 to the ID of the form | ||
| 19 | jQuery('#contact_popup').modal('show'); //this is the bootstrap modal popup id | ||
| 20 | } | ||
| 21 | |||
| 22 | }, false ); | ||
| 23 | |||
| 13 | }) | 24 | }) |
| 25 | ... | ... |
| ... | @@ -87,3 +87,53 @@ element.style { | ... | @@ -87,3 +87,53 @@ element.style { |
| 87 | font-size: 20px; | 87 | font-size: 20px; |
| 88 | line-height: 25px; | 88 | line-height: 25px; |
| 89 | } | 89 | } |
| 90 | |||
| 91 | .modal-content{ | ||
| 92 | border-radius: 0px !important; | ||
| 93 | } | ||
| 94 | |||
| 95 | .modal-header{ | ||
| 96 | border-bottom:0px ; | ||
| 97 | h2{ | ||
| 98 | margin-top: 0px; | ||
| 99 | } | ||
| 100 | .btn-close{ | ||
| 101 | top: -10px; | ||
| 102 | position: relative; | ||
| 103 | } | ||
| 104 | } | ||
| 105 | .modal-body { | ||
| 106 | padding-top: 0px; | ||
| 107 | a { | ||
| 108 | color:#1A3668 !important; | ||
| 109 | text-decoration: none; | ||
| 110 | } | ||
| 111 | a:hover{ | ||
| 112 | text-decoration: underline; | ||
| 113 | } | ||
| 114 | } | ||
| 115 | |||
| 116 | |||
| 117 | |||
| 118 | .modal-footer{ | ||
| 119 | border-top:0px ; | ||
| 120 | } | ||
| 121 | |||
| 122 | .contest-close{ | ||
| 123 | background-color: transparent !important; | ||
| 124 | text-transform: uppercase; | ||
| 125 | max-width: 100px; | ||
| 126 | float: right; | ||
| 127 | border: 1px solid #183668 !important; | ||
| 128 | color: #183668 !important; | ||
| 129 | transition: ease-out 0.5s; | ||
| 130 | margin-top: 20px; | ||
| 131 | margin: auto; | ||
| 132 | padding: 10px 20px; | ||
| 133 | } | ||
| 134 | .contest-close:hover{ | ||
| 135 | background-color: transparent !important; | ||
| 136 | color: #fff !important; | ||
| 137 | box-shadow: inset 100px 0 0 0 #183668; | ||
| 138 | transition: ease-out 0.5s; | ||
| 139 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment