This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
@@ -0,0 +1,836 @@
.agent-locator {
--agent-green: #16ad5b;
--agent-text: #202421;
--agent-muted: #707774;
--agent-border: #dfe4e1;
color: var(--agent-text);
font-family: Arial, Helvetica, sans-serif;
}
.agent-hero {
background:
radial-gradient(ellipse at 57% -25%, rgba(5, 112, 69, .72) 0, rgba(31, 143, 91, .42) 30%, transparent 58%),
radial-gradient(ellipse at 38% 108%, rgba(24, 135, 80, .34) 0, transparent 54%),
linear-gradient(101deg, #9bdab7 0%, #87d1aa 31%, #72c298 53%, rgba(218, 238, 226, .74) 72%, #fff 90%);
min-height: clamp(310px, 19vw, 390px);
overflow: hidden;
position: relative;
}
.agent-hero::before,
.agent-hero::after {
content: '';
pointer-events: none;
position: absolute;
}
.agent-hero::before {
background: linear-gradient(145deg, rgba(14, 119, 72, .2), rgba(255, 255, 255, .06));
height: 145%;
left: 43%;
top: -88%;
transform: rotate(-8deg);
width: 30%;
}
.agent-hero::after {
background: radial-gradient(ellipse, rgba(255, 255, 255, .25), transparent 68%);
height: 150%;
left: 58%;
top: 1%;
transform: rotate(15deg);
width: 24%;
}
.agent-hero__inner {
align-items: end;
box-sizing: border-box;
display: grid;
gap: clamp(40px, 8vw, 150px);
grid-template-columns: minmax(0, 2.7fr) minmax(210px, .75fr);
margin: 0 auto;
max-width: 1680px;
min-height: inherit;
padding: clamp(42px, 4vw, 68px) clamp(24px, 7vw, 120px);
position: relative;
z-index: 1;
}
.agent-hero__copy {
color: #fff;
max-width: 1080px;
}
.agent-hero__eyebrow {
font-size: clamp(28px, 2.45vw, 47px);
font-weight: 400;
line-height: 1.15;
margin: 0 0 8px;
}
.agent-hero__title {
color: #fff;
font-size: clamp(38px, 3.35vw, 66px);
font-weight: 400;
letter-spacing: .055em;
line-height: 1.13;
margin: 0;
text-transform: none;
}
.agent-hero__description {
font-size: clamp(17px, 1.28vw, 25px);
line-height: 1.22;
margin: clamp(32px, 3vw, 54px) 0 0;
max-width: 1010px;
}
.agent-hero__apply {
align-items: center;
align-self: end;
background: var(--agent-green);
border-radius: 999px;
box-sizing: border-box;
color: #fff;
display: inline-flex;
font-size: clamp(18px, 1.25vw, 25px);
font-weight: 700;
gap: 22px;
justify-content: center;
justify-self: end;
min-height: 78px;
min-width: clamp(220px, 14vw, 270px);
padding: 18px 34px;
user-select: none;
}
.agent-hero__apply-arrow {
font-size: 36px;
font-weight: 300;
line-height: .8;
}
.agent-map,
.agent-directory {
box-sizing: border-box;
margin: 0 auto;
max-width: 1680px;
padding-left: clamp(24px, 7vw, 120px);
padding-right: clamp(24px, 7vw, 120px);
}
.agent-map {
padding-top: clamp(44px, 6vw, 88px);
}
.agent-map__title,
.agent-directory__title {
color: #252927;
font-size: clamp(30px, 3vw, 48px);
font-weight: 700;
letter-spacing: .12em;
margin: 0;
text-transform: uppercase;
}
.agent-map__intro {
color: var(--agent-muted);
font-size: 17px;
margin: 14px 0 24px;
}
.agent-map__canvas {
min-height: 420px;
position: relative;
}
.agent-map__image {
display: block;
height: auto;
pointer-events: none;
width: 100%;
}
.agent-map__markers {
inset: 0;
position: absolute;
}
.agent-map__marker {
appearance: none;
background: rgba(22, 173, 91, .22);
border: 0;
border-radius: 50%;
box-shadow: 0 0 0 1px rgba(22, 173, 91, .12);
cursor: pointer;
height: 22px;
left: var(--marker-x);
padding: 0;
position: absolute;
top: var(--marker-y);
transform: translate(-50%, -50%);
transition: transform .18s ease, background-color .18s ease;
width: 22px;
z-index: 2;
}
.agent-map__marker::before {
animation: agent-marker-pulse 2.2s infinite;
border: 2px solid rgba(22, 173, 91, .46);
border-radius: inherit;
content: '';
inset: -7px;
position: absolute;
}
.agent-map__marker:hover,
.agent-map__marker:focus-visible,
.agent-map__marker[aria-pressed="true"] {
background: rgba(22, 173, 91, .38);
outline: 3px solid rgba(22, 173, 91, .2);
transform: translate(-50%, -50%) scale(1.12);
}
.agent-map__marker-core {
background: var(--agent-green);
border: 3px solid #fff;
border-radius: 50%;
box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
inset: 4px;
position: absolute;
}
@keyframes agent-marker-pulse {
0%, 100% { opacity: .7; transform: scale(.8); }
50% { opacity: 0; transform: scale(1.28); }
}
.agent-map__popup {
background: rgba(255, 255, 255, .98);
border: 1px solid #edf0ee;
border-radius: 26px;
box-shadow: 0 16px 48px rgba(22, 53, 37, .13);
box-sizing: border-box;
max-width: 680px;
padding: clamp(24px, 3vw, 46px);
position: absolute;
right: 2.5%;
top: 13%;
width: 48%;
z-index: 5;
}
.agent-map__popup[hidden] {
display: none;
}
.agent-map__popup-close {
appearance: none;
background: transparent;
border: 0;
color: #6d746f;
cursor: pointer;
font-size: 28px;
line-height: 1;
padding: 8px;
position: absolute;
right: 16px;
top: 12px;
}
.agent-map__popup-heading {
align-items: center;
display: flex;
gap: 12px;
margin: 0 34px 26px 0;
}
.agent-map__popup-heading h2 {
font-size: clamp(22px, 2vw, 30px);
letter-spacing: .06em;
margin: 0;
}
.agent-map__count {
align-items: center;
background: var(--agent-green);
border-radius: 999px;
box-sizing: border-box;
color: #fff;
display: inline-flex;
font-size: 16px;
font-weight: 700;
justify-content: center;
line-height: 1;
min-height: 32px;
min-width: 52px;
padding: 7px 15px;
white-space: nowrap;
}
.agent-map__featured {
display: grid;
gap: 20px 26px;
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.agent-map__featured-item {
align-items: center;
display: grid;
gap: 10px;
grid-template-columns: minmax(66px, 1fr) minmax(70px, 1fr);
min-width: 0;
}
.agent-map__featured-item img {
background: #fff;
border-radius: 7px;
height: 48px;
object-fit: contain;
width: 100%;
}
.agent-map__featured-item span {
font-size: 14px;
line-height: 1.25;
overflow-wrap: anywhere;
white-space: normal;
}
.agent-map__explore {
align-items: center;
appearance: none;
background: transparent;
border: 0;
color: var(--agent-green);
cursor: pointer;
display: flex;
font-size: 17px;
font-weight: 700;
gap: 14px;
margin: 28px 0 0 auto;
padding: 8px 0;
}
.agent-map__explore span:last-child {
font-size: 26px;
font-weight: 400;
}
.agent-directory {
padding-bottom: 90px;
padding-top: clamp(52px, 7vw, 100px);
scroll-margin-top: 90px;
}
.agent-directory__title::after {
background: var(--agent-green);
content: '';
display: block;
height: 3px;
margin-top: 16px;
width: 82px;
}
.agent-filters {
align-items: center;
border-bottom: 1px solid var(--agent-border);
display: grid;
gap: 18px;
grid-template-columns: minmax(180px, .8fr) minmax(180px, .8fr) minmax(280px, 1.7fr) auto auto;
margin-top: 42px;
padding-bottom: 18px;
}
.agent-filters__field select,
.agent-filters__field input {
background: #fff;
border: 1px solid #cdd3d0;
border-radius: 8px;
box-sizing: border-box;
color: #343936;
font-size: 15px;
height: 48px;
padding: 0 16px;
width: 100%;
}
.agent-filters__search {
position: relative;
}
.agent-filters__search input {
padding-left: 45px;
}
.agent-filters__search-icon {
border: 2px solid #70869d;
border-radius: 50%;
height: 11px;
left: 17px;
position: absolute;
top: 16px;
width: 11px;
}
.agent-filters__search-icon::after {
background: #70869d;
content: '';
height: 2px;
position: absolute;
right: -6px;
top: 10px;
transform: rotate(45deg);
width: 7px;
}
.agent-filters__result {
color: var(--agent-green);
font-size: 15px;
margin: 0;
white-space: nowrap;
}
.agent-filters__reset {
align-items: center;
appearance: none;
background: var(--agent-green);
border: 0;
border-radius: 10px;
color: #fff;
cursor: pointer;
display: flex;
font-size: 16px;
gap: 8px;
height: 48px;
justify-content: center;
min-width: 142px;
padding: 0 22px;
}
.agent-filters__reset span {
font-size: 24px;
}
.agent-directory__grid {
display: grid;
gap: 26px;
grid-template-columns: repeat(3, minmax(0, 1fr));
margin-top: 28px;
}
.agent-card {
background: #fff;
border: 1px solid #e7ebe9;
border-radius: 14px;
box-shadow: 0 8px 24px rgba(25, 55, 40, .04);
box-sizing: border-box;
min-width: 0;
padding: 28px 34px;
}
.agent-card__header {
align-items: center;
display: grid;
gap: 24px;
grid-template-columns: minmax(120px, 42%) minmax(0, 1fr);
margin-bottom: 20px;
}
.agent-card__logo {
height: 74px;
object-fit: contain;
width: 100%;
}
.agent-card__name {
font-size: 17px;
line-height: 1.3;
margin: 0;
overflow-wrap: anywhere;
}
.agent-card__body p {
align-items: flex-start;
display: flex;
font-size: 14px;
gap: 10px;
line-height: 1.45;
margin: 12px 0 0;
overflow-wrap: anywhere;
}
.agent-card__flag {
font-size: 19px;
line-height: 1;
}
.agent-card__pin {
border: 2px solid #35bf75;
border-radius: 50% 50% 50% 0;
flex: 0 0 12px;
height: 12px;
margin: 2px 2px 0 1px;
transform: rotate(-45deg);
width: 12px;
}
.agent-card__pin::after {
background: #35bf75;
border-radius: 50%;
content: '';
height: 4px;
left: 4px;
position: absolute;
top: 4px;
width: 4px;
}
.agent-card__website span {
flex: 0 0 auto;
}
.agent-card__website a {
color: #3d4943;
text-decoration: underline;
}
.agent-directory__empty {
color: var(--agent-muted);
font-size: 18px;
margin: 54px 0;
text-align: center;
}
.agent-pagination {
align-items: center;
display: flex;
gap: 18px;
justify-content: center;
margin-top: 34px;
}
.agent-pagination[hidden] {
display: none;
}
.agent-pagination__button {
appearance: none;
background: #cfe9dc;
border: 0;
border-radius: 999px;
cursor: pointer;
height: 10px;
min-width: 10px;
padding: 0;
transition: background-color .18s ease, transform .18s ease, width .18s ease;
width: 10px;
}
.agent-pagination__button--page:hover,
.agent-pagination__button--page:focus-visible {
background: #76cea2;
outline: 3px solid rgba(22, 173, 91, .16);
}
.agent-pagination__button--page[aria-current="page"] {
background: var(--agent-green);
width: 34px;
}
.agent-pagination__button--previous,
.agent-pagination__button--next {
align-items: center;
border: 1px solid var(--agent-green);
display: flex;
font-size: 34px;
height: 54px;
justify-content: center;
line-height: 1;
width: 54px;
}
.agent-pagination__button--previous {
background: #fff;
color: var(--agent-green);
margin-right: 28px;
}
.agent-pagination__button--next {
background: var(--agent-green);
color: #fff;
margin-left: 28px;
}
.agent-pagination__button--previous:disabled,
.agent-pagination__button--next:disabled {
cursor: default;
opacity: .35;
}
.agent-sr-only {
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
.agent-application {
background-color: #f4f5f1;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
box-sizing: border-box;
min-height: 560px;
padding: 76px clamp(24px, 7vw, 120px) 56px;
scroll-margin-top: 110px;
}
.agent-application__inner {
display: grid;
gap: clamp(54px, 8vw, 145px);
grid-template-columns: minmax(260px, .7fr) minmax(520px, 1.5fr);
margin: 0 auto;
max-width: 1320px;
}
.agent-application__contact {
align-self: center;
display: grid;
gap: 42px;
}
.agent-application__contact-item {
display: grid;
justify-items: start;
}
.agent-application__contact-item a {
color: #111;
font-size: 19px;
font-weight: 700;
text-decoration: none;
}
.agent-application__contact-label {
color: #666;
font-size: 13px;
margin: 10px 0 3px;
text-transform: uppercase;
}
.agent-application__icon {
background-position: center;
background-repeat: no-repeat;
background-size: contain;
display: block;
height: 40px;
width: 40px;
}
.agent-application__icon--mail {
background-image: url('../images/email.svg');
}
.agent-application__icon--phone {
background-image: url('../images/phone-call.svg');
}
.agent-application__form { min-width: 0; }
.agent-application__grid {
display: grid;
gap: 23px 22px;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.agent-application__field {
display: block;
margin: 0;
}
.agent-application__field > span {
color: #303330;
display: block;
font-size: 15px;
font-weight: 400;
margin: 0 0 7px;
}
.agent-application__field.required > span::after {
color: var(--agent-green);
content: ' *';
}
.agent-application__field input,
.agent-application__field select,
.agent-application__field textarea {
background-color: transparent;
border: 0;
border-bottom: 1.5px solid #3f423f;
border-radius: 0;
box-shadow: none;
box-sizing: border-box;
color: #202421;
font-family: inherit;
font-size: 15px;
height: 37px;
margin: 0;
padding: 4px 0 8px;
width: 100%;
}
.agent-application__field textarea {
height: 88px;
min-height: 88px;
resize: vertical;
}
.agent-application__field input:focus,
.agent-application__field select:focus,
.agent-application__field textarea:focus {
border-color: var(--agent-green);
box-shadow: none;
outline: 0;
}
.agent-application__field input::placeholder,
.agent-application__field textarea::placeholder { color: #9b9e9b; opacity: 1; }
.agent-application__field .mage-error {
color: #e02b27;
font-size: 12px;
margin-top: 5px;
}
.agent-application__message { margin-top: 23px; }
.agent-application__actions {
display: flex;
justify-content: flex-end;
margin-top: 28px;
}
.agent-application__submit,
.agent-application__submit.action.primary {
background: var(--agent-green);
border: 1px solid var(--agent-green);
border-radius: 28px;
box-shadow: none;
color: #fff;
font-size: 15px;
font-weight: 600;
letter-spacing: .16em;
min-width: 112px;
padding: 13px 24px;
}
.agent-application__submit:hover,
.agent-application__submit:focus,
.agent-application__submit.action.primary:hover,
.agent-application__submit.action.primary:focus { background: #0d934b; border-color: #0d934b; color: #fff; }
.agent-application__submit:disabled { cursor: wait; opacity: .65; }
.agent-application__trap { display: none !important; }
.agent-application__status {
border-radius: 4px;
display: none;
margin: 0 0 18px;
padding: 10px 14px;
}
.agent-application__status.success { background: #e8f6ed; color: #08753c; display: block; }
.agent-application__status.error { background: #fdecec; color: #b3261e; display: block; }
.agent-application__tagline {
color: #111;
font-size: clamp(30px, 2.5vw, 46px);
font-weight: 400;
letter-spacing: .055em;
margin: 72px auto 0;
max-width: 1320px;
text-align: center;
}
@media (max-width: 1180px) {
.agent-map__canvas { min-height: 360px; }
.agent-map__popup { width: 56%; }
.agent-map__featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agent-filters { grid-template-columns: 1fr 1fr 2fr; }
.agent-filters__result { grid-column: 1 / 3; }
.agent-filters__reset { justify-self: end; }
.agent-directory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agent-application__inner { gap: 50px; grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr); }
}
@media (max-width: 767px) {
.agent-hero {
background:
radial-gradient(ellipse at 82% 5%, rgba(5, 112, 69, .42), transparent 48%),
linear-gradient(145deg, #92d4ae 0%, #62bd8d 67%, #dcefe5 100%);
min-height: 0;
}
.agent-hero__inner {
display: grid;
gap: 28px;
grid-template-columns: 1fr;
padding: 40px 18px;
}
.agent-hero__eyebrow { font-size: 25px; }
.agent-hero__title { font-size: 35px; letter-spacing: .025em; }
.agent-hero__description { font-size: 16px; margin-top: 26px; }
.agent-hero__apply {
justify-self: start;
min-height: 58px;
min-width: 180px;
padding: 13px 26px;
}
.agent-map,
.agent-directory { padding-left: 18px; padding-right: 18px; }
.agent-map__title,
.agent-directory__title { letter-spacing: .07em; }
.agent-map__intro { font-size: 15px; }
.agent-map__canvas { min-height: 360px; }
.agent-map__image { margin-top: 30px; }
.agent-map__marker { height: 18px; width: 18px; }
.agent-map__popup {
border-radius: 20px;
bottom: 0;
left: 0;
max-width: none;
padding: 24px 20px;
right: 0;
top: auto;
width: 100%;
}
.agent-map__popup-heading { margin-bottom: 18px; }
.agent-map__featured { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agent-map__featured-item { grid-template-columns: 70px minmax(0, 1fr); }
.agent-map__explore { margin-top: 18px; }
.agent-filters { display: grid; grid-template-columns: 1fr; }
.agent-filters__result { grid-column: auto; white-space: normal; }
.agent-filters__reset { justify-self: stretch; }
.agent-directory__grid { grid-template-columns: 1fr; }
.agent-card { padding: 24px; }
.agent-pagination { gap: 13px; }
.agent-pagination__button--previous { margin-right: 8px; }
.agent-pagination__button--next { margin-left: 8px; }
.agent-application { min-height: 0; padding: 52px 18px 42px; }
.agent-application__inner { gap: 46px; grid-template-columns: 1fr; }
.agent-application__contact { gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agent-application__grid { grid-template-columns: 1fr; }
.agent-application__tagline { font-size: 28px; margin-top: 52px; }
}
@media (max-width: 480px) {
.agent-application__contact { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
.agent-map__marker::before { animation: none; }
html:focus-within { scroll-behavior: auto; }
}
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 100" role="img" aria-label="Agent">
<rect width="240" height="100" rx="8" fill="#f3f5f4"/>
<path d="M46 25h29c18 0 29 9 29 25S93 75 75 75H46V25zm24 15v20h6c7 0 11-3 11-10s-4-10-11-10h-6z" fill="#16ad5b"/>
<text x="118" y="59" font-family="Arial,sans-serif" font-size="24" font-weight="700" fill="#26332d">AGENT</text>
</svg>

After

Width:  |  Height:  |  Size: 388 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

@@ -0,0 +1,3 @@
<svg width="40" height="30" viewBox="0 0 40 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M35.326 2H4C3.83 2 3.664 2.021 3.505 2.062L18.678 17.234C18.8655 17.4215 19.1198 17.5268 19.385 17.5268C19.6502 17.5268 19.9045 17.4215 20.092 17.234L35.326 2ZM37.489 2.665L25.269 14.885L37.594 27.209C37.849 26.873 38 26.454 38 26V4C38 3.487 37.807 3.02 37.49 2.665H37.489ZM35.556 28L23.856 16.299L21.506 18.649C21.2274 18.9276 20.8967 19.1487 20.5327 19.2994C20.1687 19.4502 19.7785 19.5279 19.3845 19.5279C18.9905 19.5279 18.6003 19.4502 18.2363 19.2994C17.8723 19.1487 17.5416 18.9276 17.263 18.649L14.914 16.299L3.33 27.885C3.54 27.959 3.765 28 4.001 28H35.557H35.556ZM2.031 26.354L13.5 14.884L2.074 3.46C2.02483 3.63578 1.99993 3.81747 2 4V26C2 26.12 2.01 26.239 2.031 26.354ZM4 0H36C36.5253 0 37.0454.103463 37.5307.304482C38.016.5055 38.457.800139 38.8284 1.17157C39.1999 1.54301 39.4945 1.98396 39.6955 2.46927C39.8965 2.95457 40 3.47471 40 4V26C40 26.5253 39.8965 27.0454 39.6955 27.5307C39.4945 28.016 39.1999 28.457 38.8284 28.8284C38.457 29.1999 38.016 29.4945 37.5307 29.6955C37.0454 29.8965 36.5253 30 36 30H4C3.47471 30 2.95457 29.8965 2.46927 29.6955C1.98396 29.4945 1.54301 29.1999 1.17157 28.8284C.800138 28.457.505501 28.016.304482 27.5307C.103463 27.0454 0 26.5253 0 26V4C0 3.47471.103463 2.95457.304482 2.46927C.505501 1.98396.800138 1.54301 1.17157 1.17157C1.54301.800139 1.98396.5055 2.46927.304482C2.95457.103463 3.47471 0 4 0Z" fill="#18A957"/>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

@@ -0,0 +1,5 @@
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M34.8163 17.1723C35.0269 15.7591 34.9578 14.3123 34.609 12.9212C34.1483 11.0836 33.1993 9.34325 31.7622 7.90617C30.3251 6.46909 28.5848 5.52016 26.7472 5.05937C25.3561 4.71056 23.9093 4.64148 22.4961 4.85213" stroke="#18A957" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M28.4909 16.5029C28.7165 14.989 28.2467 13.3915 27.0814 12.2262C25.9159 11.0609 24.3184 10.591 22.8047 10.8166" stroke="#18A957" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M11.9792 7.32861C12.5847 7.32861 13.1426 7.65696 13.4364 8.18633L15.4752 11.8587C15.7421 12.3395 15.7546 12.9211 15.5087 13.413L13.5447 17.341C13.5447 17.341 14.1138 20.2673 16.4958 22.6493C18.8778 25.0313 21.7942 25.5906 21.7942 25.5906L25.7217 23.6269C26.2139 23.3808 26.7959 23.3935 27.2769 23.6609L30.9597 25.7084C31.4885 26.0024 31.8165 26.56 31.8165 27.1651V31.393C31.8165 33.5461 29.8166 35.1012 27.7765 34.4128C23.5866 32.999 17.0827 30.3072 12.9603 26.1848C8.83791 22.0624 6.14608 15.5585 4.7323 11.3686C4.04395 9.3285 5.59902 7.32861 7.75206 7.32861H11.9792Z" stroke="#18A957" stroke-width="2" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

@@ -0,0 +1,60 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 720" role="img" aria-labelledby="title desc">
<title id="title">Dotted world map</title>
<desc id="desc">A wide stylized world map composed of evenly spaced grey dots.</desc>
<defs>
<pattern id="dots" width="11.5" height="11.5" patternUnits="userSpaceOnUse">
<circle cx="3.8" cy="3.8" r="3.05" fill="#9da19e"/>
</pattern>
</defs>
<g fill="url(#dots)">
<!-- North America and Greenland -->
<path d="M118 164l35-35 70-25 82 3 55 18 53-5 58 21 50 2 44 24-11 25-46 10-26 28-34 5-18 27-43 2-18 24-35 14-11 29-31 20-20 38-28 8-18-25-18-13-13-42-30-22-23-31-32-17-7-30-36-12-22-26-38-9-26-28z"/>
<path d="M500 99l33-49 70-23 81 8 40 26-25 28-49 10-29 31-45 8-34-19z"/>
<path d="M89 349l28-17 40 9 18 29-21 29-46 12-27-24z"/>
<!-- Central America and Caribbean -->
<path d="M316 348l33 8 30 22 34 6 28 26-18 19-31-12-19 7-23-29-28-13z"/>
<path d="M401 352l57 12 45 19-12 13-47-13-39 3z"/>
<!-- South America -->
<path d="M438 412l51-14 64 12 42 28 15 42-17 46-26 31-9 50-27 50-32 31-20-39-18-35-7-46-20-41-28-36-8-42z"/>
<!-- Europe -->
<path d="M707 183l31-28 42-6 20-21 42 12 32-16 39 20 28-3 29 26-10 26-43 6-24 21-41-4-32 19-31-11-23 21-27-19-34-5-11-29z"/>
<path d="M663 194l17-30 29 2 14 22-24 23z"/>
<path d="M747 115l13-31 35-11 19 26-17 26z"/>
<!-- Africa -->
<path d="M747 270l38-31 67-7 74 22 41 45-9 64-34 38-17 68-42 58-35-12-22-51-37-29-17-57-35-31-8-43z"/>
<path d="M949 445l16 31-13 48-24-11 3-44z"/>
<!-- Asia -->
<path d="M915 157l53-38 67-16 50-28 77-9 48 18 72-6 66 32 63 11 60 38-13 35-50 5-18 28-60-8-34 26-24 34-44 5-21 32-42-17-37 19-30-29-42-4-22-31-46-10-35-35-53-4-14-29z"/>
<path d="M960 278l36-20 45 25 20 48-32 45-48-12-27-47z"/>
<path d="M1047 296l38 16 26 48-20 45-30-21-15-42-26-24z"/>
<path d="M1135 314l40 27 31 54-22 35-25-39-34-25z"/>
<path d="M1212 347l29 20 19 44-17 28-25-31z"/>
<!-- Korean Peninsula -->
<path d="M1300 230l17 5 12 24-8 32-15 14-12-24 3-26z"/>
<path d="M1329 249l24-22 17 27-15 42-19 13z"/>
<!-- Taiwan -->
<path d="M1298 315l10 4 5 15-6 18-10-7-4-16z"/>
<!-- South-east Asian islands -->
<path d="M1197 437l37 4 20 19-28 14-37-14z"/>
<path d="M1262 465l47 5 35 26-18 16-42-13-31-18z"/>
<path d="M1347 485l33 8 27 25-17 17-35-13z"/>
<path d="M1417 448l19-17 18 17-11 31-22 9z"/>
<!-- Oceania -->
<path d="M1261 526l41-34 62-4 67 27 43 42-13 48-56 26-66 3-51-30-42-36z"/>
<path d="M1492 595l25-15 28 17-7 26-29 12z"/>
<path d="M1163 516l23-15 19 17-12 23-28-3z"/>
<!-- Antarctica -->
<path d="M242 664l94-18 92 10 74-14 102 18 91-8 92 15 87-21 100 12 84-17 94 12 93-8 90 22-28 28-147 12-134-4-116 9-145-10-125 10-131-18-106 1z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

@@ -0,0 +1,47 @@
define([
'jquery',
'mage/validation'
], function ($) {
'use strict';
return function (config, element) {
var $form = $(element);
var $submit = $form.find('[type="submit"]');
var $status = $form.find('[data-role="application-status"]');
$form.validation();
$form.on('submit.agentApplication', function (event) {
event.preventDefault();
if (!$form.validation('isValid')) {
return;
}
$submit.prop('disabled', true).addClass('disabled');
$status.removeClass('success error').empty();
$.ajax({
url: $form.attr('action'),
type: 'POST',
dataType: 'json',
data: $form.serialize()
}).done(function (response) {
if (response.success) {
$form[0].reset();
$status.addClass('success').text(response.message);
} else {
$status.addClass('error').text(response.message);
}
}).fail(function (xhr) {
var response = xhr.responseJSON || {};
$status.addClass('error').text(
response.message || $.mage.__('Unable to submit your application. Please try again later.')
);
}).always(function () {
$submit.prop('disabled', false).removeClass('disabled');
});
});
};
});
@@ -0,0 +1,450 @@
define([
'jquery',
'mage/translate'
], function ($, $t) {
'use strict';
return function (config, element) {
var $root = $(element);
var agents = (config.data.agents || []).slice();
var continents = config.data.continents || [];
var continentByCode = {};
var state = {
continent: '',
country: '',
keyword: '',
popupCountry: '',
page: 1
};
var pageSize = 9;
var $continent = $root.find('[data-role="continent-filter"]');
var $country = $root.find('[data-role="country-filter"]');
var $keyword = $root.find('[data-role="keyword-filter"]');
var $popup = $root.find('[data-role="map-popup"]');
agents.sort(function (a, b) {
return Number(a.sort_order) - Number(b.sort_order);
});
continents.forEach(function (continent) {
continentByCode[continent.code] = continent;
});
$root.find('[data-role="map-image"]').attr('src', config.mapUrl);
buildMarkers();
buildContinentOptions();
restoreStateFromUrl();
buildCountryOptions();
renderDirectory(false);
bindEvents();
function agentsForContinent(code) {
return agents.filter(function (agent) {
return agent.continent === code;
});
}
function agentsForCountry(code) {
return agents.filter(function (agent) {
return agent.country_code === code;
});
}
function buildMarkers() {
var $markers = $root.find('[data-role="map-markers"]').empty();
var countries = {};
agents.forEach(function (agent) {
if (agent.map_x === null || agent.map_y === null) {
return;
}
if (!countries[agent.country_code]) {
countries[agent.country_code] = {
code: agent.country_code,
label: agent.country,
x: Number(agent.map_x),
y: Number(agent.map_y),
count: 0
};
}
countries[agent.country_code].count++;
});
Object.keys(countries).forEach(function (countryCode) {
var country = countries[countryCode];
$('<button/>', {
type: 'button',
'class': 'agent-map__marker',
'data-country': country.code,
'aria-label': $t('Show %1 agents in %2').replace('%1', country.count).replace('%2', country.label)
}).css({
'--marker-x': country.x + '%',
'--marker-y': country.y + '%'
}).append($('<span/>', {
'class': 'agent-map__marker-core',
'aria-hidden': 'true'
})).appendTo($markers);
});
}
function buildContinentOptions() {
continents.forEach(function (continent) {
if (!agentsForContinent(continent.code).length) {
return;
}
$('<option/>', {
value: continent.code,
text: continent.label
}).appendTo($continent);
});
}
function buildCountryOptions() {
var selected = state.country;
var countries = {};
var countryLabel = $country.find('option:first').text();
agents.forEach(function (agent) {
if (!state.continent || agent.continent === state.continent) {
countries[agent.country_code] = agent.country;
}
});
$country.empty().append($('<option/>', {value: '', text: countryLabel}));
Object.keys(countries).sort(function (a, b) {
return countries[a].localeCompare(countries[b]);
}).forEach(function (code) {
$('<option/>', {value: code, text: countries[code]}).appendTo($country);
});
if (selected && countries[selected]) {
$country.val(selected);
} else {
state.country = '';
$country.val('');
}
}
function openPopup(countryCode) {
var countryAgents = agentsForCountry(countryCode);
var featured = countryAgents.slice(0, 5);
var $items = $root.find('[data-role="popup-agents"]').empty();
if (!featured.length) {
return;
}
state.popupCountry = countryCode;
$root.find('[data-role="popup-title"]').text(featured[0].country + ' ' + config.labels.agents);
$root.find('[data-role="popup-count"]').text(countryAgents.length);
featured.forEach(function (agent) {
var $item = $('<div/>', {'class': 'agent-map__featured-item'});
$('<img/>', {
src: agent.logo_url,
alt: '',
loading: 'lazy'
}).appendTo($item);
$('<span/>').text(agent.name).appendTo($item);
$item.appendTo($items);
});
$root.find('.agent-map__marker').attr('aria-pressed', 'false');
$root.find('.agent-map__marker[data-country="' + countryCode + '"]').attr('aria-pressed', 'true');
$popup.prop('hidden', false).addClass('is-open');
}
function closePopup() {
state.popupCountry = '';
$popup.prop('hidden', true).removeClass('is-open');
$root.find('.agent-map__marker').attr('aria-pressed', 'false');
}
function renderDirectory(updateUrl) {
var keyword = normalize(state.keyword);
var filtered = agents.filter(function (agent) {
if (state.continent && agent.continent !== state.continent) {
return false;
}
if (state.country && agent.country_code !== state.country) {
return false;
}
if (!keyword) {
return true;
}
return normalize([
agent.name,
agent.system_name,
agent.country,
agent.address,
agent.note
].join(' ')).indexOf(keyword) !== -1;
});
var $list = $root.find('[data-role="agent-list"]').empty();
var $empty = $root.find('[data-role="empty-state"]');
var totalPages = Math.max(1, Math.ceil(filtered.length / pageSize));
var pageAgents;
state.page = Math.min(Math.max(1, state.page), totalPages);
pageAgents = filtered.slice((state.page - 1) * pageSize, state.page * pageSize);
pageAgents.forEach(function (agent) {
renderAgentCard(agent).appendTo($list);
});
renderPagination(filtered.length, totalPages);
$root.find('[data-role="result-count"]').text(
config.labels.filteredResults.replace('%1', filtered.length)
);
$empty.text(config.labels.noResults).prop('hidden', filtered.length !== 0);
if (updateUrl) {
updateBrowserUrl();
}
}
function renderPagination(totalResults, totalPages) {
var $pagination = $root.find('[data-role="pagination"]').empty();
var startPage;
var endPage;
var page;
if (totalResults <= pageSize) {
$pagination.prop('hidden', true);
return;
}
$pagination.prop('hidden', false);
appendPageButton($pagination, state.page - 1, config.labels.previousPage, 'previous', state.page === 1);
if (totalPages <= 5) {
startPage = 1;
endPage = totalPages;
} else if (state.page <= 3) {
startPage = 1;
endPage = 5;
} else if (state.page >= totalPages - 2) {
startPage = totalPages - 4;
endPage = totalPages;
} else {
startPage = state.page - 2;
endPage = state.page + 2;
}
for (page = startPage; page <= endPage; page++) {
appendPageButton($pagination, page, config.labels.page.replace('%1', page), 'page', false, page === state.page);
}
appendPageButton($pagination, state.page + 1, config.labels.nextPage, 'next', state.page === totalPages);
}
function appendPageButton($pagination, page, label, type, disabled, current) {
var $button = $('<button/>', {
type: 'button',
'class': 'agent-pagination__button agent-pagination__button--' + type,
'data-page': page,
'aria-label': label,
disabled: disabled
});
if (current) {
$button.attr('aria-current', 'page');
}
if (type === 'previous') {
$button.append($('<span/>', {'aria-hidden': 'true', text: '‹'}));
} else if (type === 'next') {
$button.append($('<span/>', {'aria-hidden': 'true', text: '›'}));
} else {
$button.append($('<span/>', {'class': 'agent-sr-only', text: label}));
}
$button.appendTo($pagination);
}
function renderAgentCard(agent) {
var $card = $('<article/>', {'class': 'agent-card'});
var $header = $('<div/>', {'class': 'agent-card__header'}).appendTo($card);
var $body = $('<div/>', {'class': 'agent-card__body'}).appendTo($card);
$('<img/>', {
'class': 'agent-card__logo',
src: agent.logo_url,
alt: '',
loading: 'lazy'
}).appendTo($header);
$('<h3/>', {'class': 'agent-card__name'}).text(agent.name).appendTo($header);
$('<p/>', {'class': 'agent-card__country'})
.append($('<span/>', {'class': 'agent-card__flag', text: countryFlag(agent.country_code), 'aria-hidden': 'true'}))
.append($('<span/>').text(agent.country))
.appendTo($body);
if (agent.address) {
$('<p/>', {'class': 'agent-card__address'})
.append($('<span/>', {'class': 'agent-card__pin', 'aria-hidden': 'true'}))
.append($('<span/>').text(agent.address))
.appendTo($body);
}
if (agent.website) {
$('<p/>', {'class': 'agent-card__website'})
.append($('<span/>').text(config.labels.website + ': '))
.append($('<a/>', {
href: agent.website,
target: '_blank',
rel: 'noopener noreferrer',
text: displayWebsite(agent.website)
}))
.appendTo($body);
}
return $card;
}
function applyCountry(countryCode, shouldScroll) {
var countryAgents = agentsForCountry(countryCode);
if (!countryAgents.length) {
return;
}
state.continent = countryAgents[0].continent;
state.country = countryCode;
state.keyword = '';
state.page = 1;
$continent.val(state.continent);
$keyword.val('');
buildCountryOptions();
$country.val(countryCode);
renderDirectory(true);
closePopup();
if (shouldScroll) {
var target = $root.find('#global-agents').get(0);
if (target) {
target.scrollIntoView({behavior: 'smooth', block: 'start'});
}
}
}
function bindEvents() {
$root.on('click', '.agent-map__marker', function (event) {
event.stopPropagation();
openPopup($(this).data('country'));
});
$root.find('[data-role="popup-close"]').on('click', closePopup);
$root.find('[data-role="explore-all"]').on('click', function () {
if (state.popupCountry) {
applyCountry(state.popupCountry, true);
}
});
$root.find('[data-role="map-canvas"]').on('click', function (event) {
if (event.target === this || $(event.target).is('[data-role="map-image"]')) {
closePopup();
}
});
$continent.on('change', function () {
state.continent = String($(this).val() || '');
state.country = '';
state.page = 1;
buildCountryOptions();
renderDirectory(true);
});
$country.on('change', function () {
state.country = String($(this).val() || '');
state.page = 1;
renderDirectory(true);
});
$keyword.on('input', function () {
state.keyword = String($(this).val() || '');
state.page = 1;
renderDirectory(true);
});
$root.find('[data-role="pagination"]').on('click', '[data-page]', function () {
if (this.disabled) {
return;
}
state.page = Number($(this).data('page')) || 1;
renderDirectory(true);
$root.find('[data-role="agent-list"]').get(0).scrollIntoView({behavior: 'smooth', block: 'start'});
});
$root.find('[data-role="reset-filters"]').on('click', function () {
state.continent = '';
state.country = '';
state.keyword = '';
state.page = 1;
$continent.val('');
$keyword.val('');
buildCountryOptions();
renderDirectory(true);
});
$(document).on('keydown.agentLocator', function (event) {
if (event.key === 'Escape' && state.popupCountry) {
closePopup();
}
});
$(window).on('popstate.agentLocator', function () {
restoreStateFromUrl();
buildCountryOptions();
renderDirectory(false);
});
}
function restoreStateFromUrl() {
var params = new URL(window.location.href).searchParams;
var requestedContinent = params.get('continent') || '';
var requestedCountry = params.get('country') || '';
state.continent = continentByCode[requestedContinent] ? requestedContinent : '';
state.country = requestedCountry;
state.keyword = params.get('q') || '';
state.page = Math.max(1, parseInt(params.get('page'), 10) || 1);
$continent.val(state.continent);
$keyword.val(state.keyword);
}
function updateBrowserUrl() {
var url = new URL(window.location.href);
setUrlParam(url, 'continent', state.continent);
setUrlParam(url, 'country', state.country);
setUrlParam(url, 'q', state.keyword);
setUrlParam(url, 'page', state.page > 1 ? state.page : '');
window.history.replaceState({}, '', url.toString());
}
function setUrlParam(url, name, value) {
if (value) {
url.searchParams.set(name, value);
} else {
url.searchParams.delete(name);
}
}
function normalize(value) {
return String(value || '').toLocaleLowerCase().trim();
}
function displayWebsite(url) {
return url.replace(/^https?:\/\//i, '').replace(/\/$/, '');
}
function countryFlag(code) {
if (!/^[A-Z]{2}$/.test(code)) {
return '🌐';
}
return String.fromCodePoint.apply(null, code.split('').map(function (character) {
return 127397 + character.charCodeAt(0);
}));
}
};
});