diff --git a/4/bundle.d0790386738c0df1fb2f.js b/4/bundle.d0790386738c0df1fb2f.js new file mode 100644 index 0000000..5a0d5c3 --- /dev/null +++ b/4/bundle.d0790386738c0df1fb2f.js @@ -0,0 +1,2 @@ +(()=>{var e={484:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,i="millisecond",s="second",n="minute",a="hour",r="day",o="week",d="month",c="quarter",f="year",l="date",u="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}},m=function(e,t,i){var s=String(e);return!s||s.length>=t?e:""+Array(t+1-s.length).join(i)+e},v={s:m,z:function(e){var t=-e.utcOffset(),i=Math.abs(t),s=Math.floor(i/60),n=i%60;return(t<=0?"+":"-")+m(s,2,"0")+":"+m(n,2,"0")},m:function e(t,i){if(t.date()1)return e(r[0])}else{var o=t.name;_[o]=t,n=o}return!s&&n&&(y=n),n||!s&&y},T=function(e,t){if($(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new D(i)},M=v;M.l=g,M.i=$,M.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function b(e){this.$L=g(e.locale,null,!0),this.parse(e)}var m=b.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,i=e.utc;if(null===t)return new Date(NaN);if(M.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var s=t.match(p);if(s){var n=s[2]-1||0,a=(s[7]||"0").substring(0,3);return i?new Date(Date.UTC(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,a)):new Date(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,a)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return M},m.isValid=function(){return!(this.$d.toString()===u)},m.isSame=function(e,t){var i=T(e);return this.startOf(t)<=i&&i<=this.endOf(t)},m.isAfter=function(e,t){return T(e){var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(e){const t=document.createElement("div");return t.innerHTML=e,t.firstElementChild}function t(e,t,i="beforeend"){t.insertAdjacentElement(i,e.getElement())}class s{getTemplate(){return'
\n
\n \n \n
\n\n
\n \n \n
\n\n
\n \n \n
\n\n
\n \n \n
\n\n
\n \n \n
\n
'}getElement(){return this.element||(this.element=e(this.getTemplate())),this.element}removeElement(){this.element=null}}const n=["taxi","bus","train","ship","drive","flight","check-in","sightseeing","restaurant"];var a=i(484),r=i.n(a),o=i(178),d=i.n(o),c=i(646),f=i.n(c);function l(e){return e?r().utc(e).format("HH:mm"):""}function u(e){return e?r().utc(e).format("DD/MM/YY HH:mm"):""}r().extend(d()),r().extend(f());class p{constructor({point:e,offers:t,destinations:i}){this.point=e,this.offers=t,this.destinations=i}getTemplate(){return function(e,t,i){const{basePrice:s,type:a,dateFrom:r,dateTo:o}=e,d=i.find((t=>t.id===e.destination)),{description:c,name:f}=d,l=function(e){return n.map((t=>{return`
\n \n \n
`;var i})).join("")}(a),p=function(e,t){const i=t.find((t=>t.type===e.type)).offers,s=i.filter((t=>e.offers.includes(t.id)));return'
\n '+(i.length?`
\n

Offers

\n
\n\n ${i.map((e=>{const t=s.map((e=>e.id)).includes(e.id)?"checked":"";return`
\n \n \n
`})).join("")}\n
\n
`:"")}(e,t),h=function(e){return e.map((e=>``)).join("")}(i);return`
  • \n
    \n
    \n
    \n \n \n\n
    \n
    \n Event type\n ${l}\n
    \n
    \n
    \n\n
    \n \n \n \n ${h}\n \n
    \n\n
    \n \n \n —\n \n \n
    \n\n
    \n \n \n
    \n\n \n \n \n
    \n ${p}\n
    \n

    Destination

    \n

    ${c}

    \n
    \n
  • \n \n `}(this.point,this.offers,this.destinations)}getElement(){return this.element||(this.element=e(this.getTemplate())),this.element}removeElement(){this.element=null}}class h{getTemplate(){return''}getElement(){return this.element||(this.element=e(this.getTemplate())),this.element}removeElement(){this.element=null}}class b{constructor({point:e,offers:t,destinations:i}){this.point=e,this.offers=t,this.destinations=i}getTemplate(){return function(e,t,i){const{basePrice:s,type:n,dateFrom:a,dateTo:o,isFavorite:d}=e,c=(f=a)?r().utc(f).format("MMM D"):"";var f;const u=function(e,t){const i=r()(e),s=r()(t);return r().duration(i.diff(s)).format("DD[D] HH[H] mm[M]").replace(/\b00D 00H\b/,"").replace(/\b00D\b/,"")}(o,a),p=l(a),h=l(o),b=i.find((t=>t.id===e.destination)),m=t.find((t=>t.type===e.type)).offers.filter((t=>e.offers.includes(t.id))),v=d?"event__favorite-btn--active":"";return`
  • \n
    \n \n
    \n Event type icon\n
    \n

    ${n} ${b.name}

    \n
    \n

    \n \n —\n \n

    \n

    ${u}

    \n
    \n

    \n € ${s}\n

    \n

    Offers:

    \n
      \n ${m.map((e=>`
    • \n ${e.title}\n +€ \n ${e.price}\n
    • `)).join("")}\n
    \n \n \n
    \n
  • `}(this.point,this.offers,this.destinations)}getElement(){return this.element||(this.element=e(this.getTemplate())),this.element}removeElement(){this.element=null}}const m=[{id:"54d2f62a-6862-45f7-a1da-331713ec17ce",description:"Saint Petersburg - full of of cozy canteens where you can try the best coffee in the Middle East",name:"Saint Petersburg",pictures:[]},{id:"dd43c534-f518-48c1-b3cd-fb4b7b2f787e",description:"Vien - in a middle of Europe",name:"Vien",pictures:[]},{id:"4ab18ebc-63f5-487d-8957-b710a649ca50",description:"Rome - famous for its crowded street markets with the best street food in Asia",name:"Rome",pictures:[{src:"https://22.objects.htmlacademy.pro/static/destinations/4.jpg",description:"Rome is a beautiful city"},{src:"https://22.objects.htmlacademy.pro/static/destinations/6.jpg",description:"Rome is a beautiful city"},{src:"https://22.objects.htmlacademy.pro/static/destinations/10.jpg",description:"Rome in a middle of Europe"},{src:"https://22.objects.htmlacademy.pro/static/destinations/16.jpg",description:"Rome is a beautiful city"},{src:"https://22.objects.htmlacademy.pro/static/destinations/4.jpg",description:"Rome middle-eastern paradise"}]},{id:"a30baa99-560e-499b-a722-064fdb220eb6",description:"Naples - with a beautiful old town",name:"Naples",pictures:[{src:"https://22.objects.htmlacademy.pro/static/destinations/10.jpg",description:"Naples famous for its crowded street markets with the best street food in Asia"},{src:"https://22.objects.htmlacademy.pro/static/destinations/20.jpg",description:"Naples middle-eastern paradise"},{src:"https://22.objects.htmlacademy.pro/static/destinations/11.jpg",description:"Naples for those who value comfort and coziness"},{src:"https://22.objects.htmlacademy.pro/static/destinations/9.jpg",description:"Naples is a beautiful city"}]},{id:"88aa152d-9bda-4d6c-b002-81a34dc7914e",description:"Tokio - with an embankment of a mighty river as a centre of attraction",name:"Tokio",pictures:[{src:"https://22.objects.htmlacademy.pro/static/destinations/10.jpg",description:"Tokio middle-eastern paradise"},{src:"https://22.objects.htmlacademy.pro/static/destinations/18.jpg",description:"Tokio in a middle of Europe"},{src:"https://22.objects.htmlacademy.pro/static/destinations/11.jpg",description:"Tokio is a beautiful city"},{src:"https://22.objects.htmlacademy.pro/static/destinations/19.jpg",description:"Tokio a perfect place to stay with a family"}]},{id:"2c2eeb4d-8fe2-4852-ba52-ad3afdf22ca1",description:"Valencia - with an embankment of a mighty river as a centre of attraction",name:"Valencia",pictures:[{src:"https://22.objects.htmlacademy.pro/static/destinations/9.jpg",description:"Valencia a true asian pearl"},{src:"https://22.objects.htmlacademy.pro/static/destinations/16.jpg",description:"Valencia with a beautiful old town"},{src:"https://22.objects.htmlacademy.pro/static/destinations/14.jpg",description:"Valencia full of of cozy canteens where you can try the best coffee in the Middle East"}]},{id:"22fdb8aa-6682-4f67-a2c4-3ba172eeede9",description:"",name:"Oslo",pictures:[]},{id:"a8f0f30d-f243-45d0-af43-8d663a40712d",description:"Monaco - middle-eastern paradise",name:"Monaco",pictures:[{src:"https://22.objects.htmlacademy.pro/static/destinations/12.jpg",description:"Monaco with crowded streets"}]},{id:"4d516e51-d32e-4fee-9c3c-31024699e7c3",description:"Madrid - with an embankment of a mighty river as a centre of attraction",name:"Madrid",pictures:[{src:"https://22.objects.htmlacademy.pro/static/destinations/9.jpg",description:"Madrid middle-eastern paradise"},{src:"https://22.objects.htmlacademy.pro/static/destinations/9.jpg",description:"Madrid in a middle of Europe"},{src:"https://22.objects.htmlacademy.pro/static/destinations/14.jpg",description:"Madrid is a beautiful city"},{src:"https://22.objects.htmlacademy.pro/static/destinations/1.jpg",description:"Madrid in a middle of Europe"}]},{id:"24514db9-cd07-4129-a377-8c6bd73d2e99",description:"Rotterdam - for those who value comfort and coziness",name:"Rotterdam",pictures:[{src:"https://22.objects.htmlacademy.pro/static/destinations/8.jpg",description:"Rotterdam with crowded streets"},{src:"https://22.objects.htmlacademy.pro/static/destinations/3.jpg",description:"Rotterdam full of of cozy canteens where you can try the best coffee in the Middle East"},{src:"https://22.objects.htmlacademy.pro/static/destinations/14.jpg",description:"Rotterdam for those who value comfort and coziness"},{src:"https://22.objects.htmlacademy.pro/static/destinations/20.jpg",description:"Rotterdam middle-eastern paradise"},{src:"https://22.objects.htmlacademy.pro/static/destinations/17.jpg",description:"Rotterdam a perfect place to stay with a family"}]}],v=[{type:"taxi",offers:[{id:"d5d70b4c-27bf-4680-9f8c-07e02f10b16e",title:"Upgrade to a business class",price:158},{id:"1ef388a5-0a48-4e27-957f-6e265c8c3958",title:"Choose the radio station",price:92},{id:"cdd79f71-1520-4b85-9135-98f009f4a5d6",title:"Choose temperature",price:180},{id:"d44375b4-467b-4111-a86e-11a1f6e209a5",title:"Drive quickly, I'm in a hurry",price:141},{id:"6e77caf0-e083-497d-9b05-226272a3c557",title:"Drive slowly",price:170}]},{type:"bus",offers:[{id:"70b8b20a-aee2-4716-93a8-6090e90aaa5f",title:"Infotainment system",price:46},{id:"f5ecc997-833b-4794-8a19-c9bf61830e15",title:"Order meal",price:125},{id:"a3ebdd4e-9021-43be-ae41-6ba5b1a2c8c7",title:"Choose seats",price:135}]},{type:"train",offers:[{id:"5ac88f21-7096-40bf-b505-70f2ecda701c",title:"Book a taxi at the arrival point",price:80},{id:"59644519-f72b-4be3-b914-e8bf034ece5a",title:"Order a breakfast",price:178},{id:"4406d403-df60-4ede-bc53-cdb424cc40f1",title:"Wake up at a certain time",price:34}]},{type:"flight",offers:[{id:"21403e61-3256-485d-b648-771a1f2b3a1e",title:"Choose meal",price:151},{id:"f50debc7-c76f-425b-bf31-edd84c5877ad",title:"Choose seats",price:169},{id:"d64143b4-9527-4470-8ed1-5290d589b96b",title:"Upgrade to comfort class",price:185},{id:"0e87c0f3-7abc-4ba4-b4c8-e8774c6b86b0",title:"Upgrade to business class",price:147},{id:"3968d985-0310-490e-a0c7-f49f5f0b07a1",title:"Add luggage",price:143},{id:"471bf489-5102-4f18-a58e-69291145a936",title:"Business lounge",price:31}]},{type:"check-in",offers:[{id:"34adc3d6-9d70-4f96-ad91-5fb75a3a6e6d",title:"Choose the time of check-in",price:85},{id:"f1a1984c-c1a7-4a8d-883d-5c8fcdb2fc84",title:"Choose the time of check-out",price:82},{id:"7daefd03-2d9a-4143-9419-ebba3b2247fd",title:"Add breakfast",price:89},{id:"b75c96ec-f12f-403b-91be-abc0110b643f",title:"Laundry",price:169},{id:"1108cac6-d5e7-48ec-aebd-2e213444b1ee",title:"Order a meal from the restaurant",price:42}]},{type:"sightseeing",offers:[]},{type:"ship",offers:[{id:"7356e656-94e6-4f36-8bb5-163a17cfa841",title:"Choose meal",price:162},{id:"b1bd6cc2-51ce-42b2-99f5-9df12a7f97f9",title:"Choose seats",price:109},{id:"f91cfb4a-c241-4e22-8bf1-e5e8ab4bb222",title:"Upgrade to comfort class",price:72},{id:"c5424871-ab68-48e9-95ae-da33312cb24d",title:"Upgrade to business class",price:133},{id:"f0484591-cfda-45c8-9286-c222d8e1b701",title:"Add luggage",price:118},{id:"2fcaf275-8d86-4eb4-b4d8-e12f8c07edf3",title:"Business lounge",price:94}]},{type:"drive",offers:[{id:"b8681284-e9c9-4b79-b14b-e33b0acc7591",title:"With automatic transmission",price:134},{id:"b892f09d-d7c1-43d5-bb61-c320125af75d",title:"With air conditioning",price:68}]},{type:"restaurant",offers:[{id:"aebb0086-2a49-4cfd-966f-969802c90981",title:"Choose live music",price:119},{id:"6b59afee-9409-41ec-9a52-ce3d0829c4ef",title:"Choose VIP area",price:73}]}],y=[{id:"ab11c7ec-63d2-4e49-bb4e-f000db081e9f",basePrice:6284,dateFrom:"2025-02-11T09:46:12.970Z",dateTo:"2025-02-12T08:12:12.970Z",destination:"24514db9-cd07-4129-a377-8c6bd73d2e99",isFavorite:!0,offers:["b8681284-e9c9-4b79-b14b-e33b0acc7591","b892f09d-d7c1-43d5-bb61-c320125af75d"],type:"drive"},{id:"754792f7-52a1-4a8a-93a6-7ce14ca86c14",basePrice:3890,dateFrom:"2025-02-13T06:46:12.970Z",dateTo:"2025-02-14T12:13:12.970Z",destination:"a8f0f30d-f243-45d0-af43-8d663a40712d",isFavorite:!1,offers:["1108cac6-d5e7-48ec-aebd-2e213444b1ee"],type:"check-in"},{id:"bc3c49dd-9f9c-426a-ae6d-5f1f6237c35e",basePrice:9509,dateFrom:"2025-02-15T03:07:12.970Z",dateTo:"2025-02-15T10:44:12.970Z",destination:"22fdb8aa-6682-4f67-a2c4-3ba172eeede9",isFavorite:!0,offers:["4406d403-df60-4ede-bc53-cdb424cc40f1"],type:"train"},{id:"5f5d0057-7442-451f-bb14-1041cf12674b",basePrice:6618,dateFrom:"2025-02-16T17:02:12.970Z",dateTo:"2025-02-17T04:45:12.970Z",destination:"24514db9-cd07-4129-a377-8c6bd73d2e99",isFavorite:!1,offers:["70b8b20a-aee2-4716-93a8-6090e90aaa5f","f5ecc997-833b-4794-8a19-c9bf61830e15","a3ebdd4e-9021-43be-ae41-6ba5b1a2c8c7"],type:"bus"},{id:"02a1a91f-d8d7-4f60-8a8b-f0ad309d5298",basePrice:8736,dateFrom:"2025-02-17T13:12:12.970Z",dateTo:"2025-02-18T05:41:12.970Z",destination:"24514db9-cd07-4129-a377-8c6bd73d2e99",isFavorite:!1,offers:["b1bd6cc2-51ce-42b2-99f5-9df12a7f97f9","f91cfb4a-c241-4e22-8bf1-e5e8ab4bb222","c5424871-ab68-48e9-95ae-da33312cb24d","f0484591-cfda-45c8-9286-c222d8e1b701","2fcaf275-8d86-4eb4-b4d8-e12f8c07edf3"],type:"ship"},{id:"a22a4304-5d7a-436e-83b3-e4e52c5b0987",basePrice:3075,dateFrom:"2025-02-20T01:38:12.970Z",dateTo:"2025-02-21T07:31:12.970Z",destination:"22fdb8aa-6682-4f67-a2c4-3ba172eeede9",isFavorite:!0,offers:["70b8b20a-aee2-4716-93a8-6090e90aaa5f","f5ecc997-833b-4794-8a19-c9bf61830e15","a3ebdd4e-9021-43be-ae41-6ba5b1a2c8c7"],type:"bus"},{id:"848b6def-66dd-4a30-8bc7-868f308c558b",basePrice:9889,dateFrom:"2025-02-22T01:34:12.970Z",dateTo:"2025-02-23T12:31:12.970Z",destination:"88aa152d-9bda-4d6c-b002-81a34dc7914e",isFavorite:!1,offers:["a3ebdd4e-9021-43be-ae41-6ba5b1a2c8c7"],type:"bus"},{id:"8dbbd41b-851d-4ce0-b791-e4c4b5ad9c0b",basePrice:9609,dateFrom:"2025-02-23T20:06:12.970Z",dateTo:"2025-02-24T07:49:12.970Z",destination:"2c2eeb4d-8fe2-4852-ba52-ad3afdf22ca1",isFavorite:!1,offers:["471bf489-5102-4f18-a58e-69291145a936"],type:"flight"},{id:"f19ad34d-fd8e-4924-88c3-41e1288fd8fd",basePrice:9311,dateFrom:"2025-02-26T01:57:12.970Z",dateTo:"2025-02-27T23:52:12.970Z",destination:"88aa152d-9bda-4d6c-b002-81a34dc7914e",isFavorite:!0,offers:[],type:"sightseeing"},{id:"584f2b32-c787-4711-8455-e32cfe5322e6",basePrice:8060,dateFrom:"2025-02-28T19:39:12.970Z",dateTo:"2025-03-02T17:31:12.970Z",destination:"4d516e51-d32e-4fee-9c3c-31024699e7c3",isFavorite:!1,offers:[],type:"sightseeing"},{id:"99658020-6d08-43fc-bca9-385caf33ebcb",basePrice:2653,dateFrom:"2025-03-03T12:47:12.970Z",dateTo:"2025-03-04T13:58:12.970Z",destination:"dd43c534-f518-48c1-b3cd-fb4b7b2f787e",isFavorite:!0,offers:["cdd79f71-1520-4b85-9135-98f009f4a5d6","d44375b4-467b-4111-a86e-11a1f6e209a5","6e77caf0-e083-497d-9b05-226272a3c557"],type:"taxi"},{id:"12e7ea0d-e79f-4f3a-8da9-9261eddd4e5b",basePrice:6690,dateFrom:"2025-03-06T06:48:12.970Z",dateTo:"2025-03-07T06:11:12.970Z",destination:"88aa152d-9bda-4d6c-b002-81a34dc7914e",isFavorite:!0,offers:["34adc3d6-9d70-4f96-ad91-5fb75a3a6e6d","f1a1984c-c1a7-4a8d-883d-5c8fcdb2fc84","7daefd03-2d9a-4143-9419-ebba3b2247fd","b75c96ec-f12f-403b-91be-abc0110b643f","1108cac6-d5e7-48ec-aebd-2e213444b1ee"],type:"check-in"},{id:"1b830b3b-ff20-4674-8b0f-c3214cfbae73",basePrice:7284,dateFrom:"2025-03-08T16:42:12.970Z",dateTo:"2025-03-10T13:09:12.970Z",destination:"88aa152d-9bda-4d6c-b002-81a34dc7914e",isFavorite:!1,offers:[],type:"taxi"},{id:"1a0e0ffd-0b1b-4779-bff8-6ca0a32af658",basePrice:3362,dateFrom:"2025-03-12T00:38:12.970Z",dateTo:"2025-03-13T07:12:12.970Z",destination:"24514db9-cd07-4129-a377-8c6bd73d2e99",isFavorite:!1,offers:["6e77caf0-e083-497d-9b05-226272a3c557"],type:"taxi"},{id:"9e8ce435-52f2-40b6-b6f6-10e5b73ba3dc",basePrice:7708,dateFrom:"2025-03-13T16:25:12.970Z",dateTo:"2025-03-14T19:39:12.970Z",destination:"22fdb8aa-6682-4f67-a2c4-3ba172eeede9",isFavorite:!0,offers:["b892f09d-d7c1-43d5-bb61-c320125af75d"],type:"drive"},{id:"6102fd03-5945-4cdf-9045-cc8034827077",basePrice:8632,dateFrom:"2025-03-16T06:31:12.970Z",dateTo:"2025-03-17T13:30:12.970Z",destination:"88aa152d-9bda-4d6c-b002-81a34dc7914e",isFavorite:!0,offers:[],type:"bus"},{id:"00ab297b-0e95-49a5-b671-542ee80b8b56",basePrice:1569,dateFrom:"2025-03-18T11:21:12.970Z",dateTo:"2025-03-19T09:25:12.970Z",destination:"22fdb8aa-6682-4f67-a2c4-3ba172eeede9",isFavorite:!1,offers:[],type:"train"},{id:"00362c5a-5c49-4f32-8ecd-7fda767c5c08",basePrice:4101,dateFrom:"2025-03-20T09:33:12.970Z",dateTo:"2025-03-21T17:57:12.970Z",destination:"a8f0f30d-f243-45d0-af43-8d663a40712d",isFavorite:!0,offers:[],type:"check-in"},{id:"a6b37366-b464-4756-9a68-34c3e34d80ae",basePrice:8463,dateFrom:"2025-03-23T00:15:12.970Z",dateTo:"2025-03-24T00:26:12.970Z",destination:"22fdb8aa-6682-4f67-a2c4-3ba172eeede9",isFavorite:!1,offers:["471bf489-5102-4f18-a58e-69291145a936"],type:"flight"},{id:"b42ff727-a449-4e22-bf89-2334d73f739e",basePrice:6184,dateFrom:"2025-03-25T10:12:12.970Z",dateTo:"2025-03-27T06:18:12.970Z",destination:"24514db9-cd07-4129-a377-8c6bd73d2e99",isFavorite:!1,offers:["d5d70b4c-27bf-4680-9f8c-07e02f10b16e","1ef388a5-0a48-4e27-957f-6e265c8c3958","cdd79f71-1520-4b85-9135-98f009f4a5d6","d44375b4-467b-4111-a86e-11a1f6e209a5","6e77caf0-e083-497d-9b05-226272a3c557"],type:"taxi"},{id:"a716774c-e921-4ede-bc6e-5c3c49a09d37",basePrice:5781,dateFrom:"2025-03-28T03:31:12.970Z",dateTo:"2025-03-29T17:57:12.970Z",destination:"88aa152d-9bda-4d6c-b002-81a34dc7914e",isFavorite:!1,offers:["f50debc7-c76f-425b-bf31-edd84c5877ad","d64143b4-9527-4470-8ed1-5290d589b96b","0e87c0f3-7abc-4ba4-b4c8-e8774c6b86b0","3968d985-0310-490e-a0c7-f49f5f0b07a1","471bf489-5102-4f18-a58e-69291145a936"],type:"flight"},{id:"01288957-597b-4926-a545-b3506d792081",basePrice:8592,dateFrom:"2025-03-31T02:56:12.970Z",dateTo:"2025-04-02T02:12:12.970Z",destination:"a8f0f30d-f243-45d0-af43-8d663a40712d",isFavorite:!1,offers:["b1bd6cc2-51ce-42b2-99f5-9df12a7f97f9","f91cfb4a-c241-4e22-8bf1-e5e8ab4bb222","c5424871-ab68-48e9-95ae-da33312cb24d","f0484591-cfda-45c8-9286-c222d8e1b701","2fcaf275-8d86-4eb4-b4d8-e12f8c07edf3"],type:"ship"},{id:"0f705908-1a03-4e67-baa6-5791e3dcc1fc",basePrice:4241,dateFrom:"2025-04-02T15:01:12.970Z",dateTo:"2025-04-03T23:53:12.970Z",destination:"4d516e51-d32e-4fee-9c3c-31024699e7c3",isFavorite:!0,offers:[],type:"sightseeing"},{id:"26e2447f-f49d-412b-a983-35c0f7770dad",basePrice:698,dateFrom:"2025-04-05T20:55:12.970Z",dateTo:"2025-04-07T05:36:12.970Z",destination:"22fdb8aa-6682-4f67-a2c4-3ba172eeede9",isFavorite:!0,offers:[],type:"train"},{id:"7415e8ca-88eb-43a5-b6d1-dec78f489322",basePrice:39,dateFrom:"2025-04-07T23:11:12.970Z",dateTo:"2025-04-09T21:34:12.970Z",destination:"24514db9-cd07-4129-a377-8c6bd73d2e99",isFavorite:!0,offers:[],type:"sightseeing"}];function _(){return(e=y)[Math.floor(Math.random()*e.length)];var e}const $=document.querySelector(".trip-main"),g=$.querySelector(".trip-controls__filters"),T=document.querySelector(".trip-events"),M=new class{points=Array.from({length:5},_);offers=v;destinations=m;getPoints(){return this.points}getOffers(){return this.offers}getDestinations(){return this.destinations}},D=new class{pointListElement=new h;constructor({container:e,pointsModel:t}){this.container=e,this.pointsModel=t}init(){this.points=[...this.pointsModel.getPoints()],this.offers=this.pointsModel.getOffers(),this.destinations=this.pointsModel.getDestinations(),t(new s,this.container),t(this.pointListElement,this.container),t(new p({point:this.points[0],offers:this.offers,destinations:this.destinations}),this.pointListElement.getElement());for(let e=0;e\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n \n '}getElement(){return this.element||(this.element=e(this.getTemplate())),this.element}removeElement(){this.element=null}},g),t(new class{getTemplate(){return'
    \n
    \n

    Amsterdam — Chamonix — Geneva

    \n\n

    18 — 20 Mar

    \n
    \n\n

    \n Total: € 1230\n

    \n
    '}getElement(){return this.element||(this.element=e(this.getTemplate())),this.element}removeElement(){this.element=null}},$,"afterbegin"),D.init()})()})(); +//# sourceMappingURL=bundle.d0790386738c0df1fb2f.js.map \ No newline at end of file diff --git a/4/bundle.d0790386738c0df1fb2f.js.map b/4/bundle.d0790386738c0df1fb2f.js.map new file mode 100644 index 0000000..0043624 --- /dev/null +++ b/4/bundle.d0790386738c0df1fb2f.js.map @@ -0,0 +1 @@ +{"version":3,"file":"bundle.d0790386738c0df1fb2f.js","mappings":"6BAAoEA,EAAOC,QAAkI,WAAY,aAAa,IAAUC,EAAE,IAAIC,EAAE,KAAKC,EAAE,cAAcC,EAAE,SAASC,EAAE,SAASC,EAAE,OAAOC,EAAE,MAAMC,EAAE,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AgB1K,KAAKyO,iBAAiB9E,cAE9H,IAAK,IAAInN,EAAI,EAAGA,EAAIwD,KAAKmO,OAAOtQ,OAAQrB,IACtC8M,EAAO,IAAImD,EAAe,CAACjC,MAAOxK,KAAKmO,OAAO3R,GAAIiO,OAAQzK,KAAKyK,OAAQC,aAAc1K,KAAK0K,eAAgB1K,KAAKyO,iBAAiB9E,aAEpI,GFhBsC,CACtCH,UAAWyE,EACXC,gBAGF5E,EAAQ,IGYO,MACbO,WAAAA,GACE,MA3BM,k7CA4BR,CAEAF,UAAAA,GAKE,OAJK3J,KAAK8J,UACR9J,KAAK8J,QAAUd,EAAchJ,KAAK6J,gBAG7B7J,KAAK8J,OACd,CAEAC,aAAAA,GACE/J,KAAK8J,QAAU,IACjB,GH3BwBkE,GAC1B1E,EAAQ,IIDO,MACbO,WAAAA,GACE,MAfM,+bAgBR,CAEAF,UAAAA,GAKE,OAJK3J,KAAK8J,UACR9J,KAAK8J,QAAUd,EAAchJ,KAAK6J,gBAG7B7J,KAAK8J,OACd,CAEAC,aAAAA,GACE/J,KAAK8J,QAAU,IACjB,GJd4BgE,EAAiB,cAE/CU,EAAc9N,M","sources":["webpack://big-trip/./node_modules/dayjs/dayjs.min.js","webpack://big-trip/./node_modules/dayjs/plugin/duration.js","webpack://big-trip/./node_modules/dayjs/plugin/utc.js","webpack://big-trip/webpack/bootstrap","webpack://big-trip/webpack/runtime/compat get default export","webpack://big-trip/webpack/runtime/define property getters","webpack://big-trip/webpack/runtime/hasOwnProperty shorthand","webpack://big-trip/./src/render.js","webpack://big-trip/./src/view/sort-view.js","webpack://big-trip/./src/const.js","webpack://big-trip/./src/utils.js","webpack://big-trip/./src/view/edit-form-view.js","webpack://big-trip/./src/view/route-point-list-view.js","webpack://big-trip/./src/view/route-point-view.js","webpack://big-trip/./src/mock/destinations.js","webpack://big-trip/./src/mock/offers.js","webpack://big-trip/./src/mock/points.js","webpack://big-trip/./src/main.js","webpack://big-trip/./src/model/points-model.js","webpack://big-trip/./src/presenter/trip-presenter.js","webpack://big-trip/./src/view/filter-view.js","webpack://big-trip/./src/view/header-info-view.js"],"sourcesContent":["!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",f=\"month\",h=\"quarter\",c=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t) {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","const RenderPosition = {\n BEFOREBEGIN: 'beforebegin',\n AFTERBEGIN: 'afterbegin',\n BEFOREEND: 'beforeend',\n AFTEREND: 'afterend',\n};\n\nfunction createElement(template) {\n const newElement = document.createElement('div');\n newElement.innerHTML = template;\n\n return newElement.firstElementChild;\n}\n\nfunction render(component, container, place = RenderPosition.BEFOREEND) {\n container.insertAdjacentElement(place, component.getElement());\n}\n\nexport {RenderPosition, createElement, render};\n","import {createElement} from '../render.js';\n\nfunction createSortTemplate() {\n return (`
    \n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n
    `);\n}\n\nexport default class SortView {\n getTemplate() {\n return createSortTemplate();\n }\n\n getElement() {\n if (!this.element) {\n this.element = createElement(this.getTemplate());\n }\n\n return this.element;\n }\n\n removeElement() {\n this.element = null;\n }\n}\n","const POINT_COUNT = 5;\n\nconst POINT_TYPES = ['taxi','bus','train','ship','drive','flight','check-in','sightseeing','restaurant'];\n\nexport {POINT_COUNT, POINT_TYPES};\n","import dayjs from 'dayjs';\n\nimport utc from 'dayjs/plugin/utc';\ndayjs.extend(utc);\n\nimport duration from 'dayjs/plugin/duration';\ndayjs.extend(duration);\n\nconst DATE_FORMAT = 'MMM D';\nconst DATE_TIME_FORMAT = 'DD/MM/YY HH:mm';\nconst TIME_FORMAT = 'HH:mm';\n\nconst firstLetterCap = (word) => `${word[0].toUpperCase()}${word.slice(1)}`;\n\nfunction getRandomArrayElement(items) {\n return items[Math.floor(Math.random() * items.length)];\n}\n\nfunction humanizeDate(date) {\n return date ? dayjs.utc(date).format(DATE_FORMAT) : '';\n}\n\nfunction humanizeTime(time) {\n return time ? dayjs.utc(time).format(TIME_FORMAT) : '';\n}\n\nfunction humanizeDateTime(dateTime) {\n return dateTime ? dayjs.utc(dateTime).format(DATE_TIME_FORMAT) : '';\n}\n\nfunction getTimeDifference(firstDate, secondDate) {\n const date1 = dayjs(firstDate);\n const date2 = dayjs(secondDate);\n const difference = dayjs.duration(date1.diff(date2));\n\n const format = 'DD[D] HH[H] mm[M]';\n\n return difference.format(format).replace(/\\b00D 00H\\b/, '').replace(/\\b00D\\b/, '');\n}\n\nexport {firstLetterCap, getRandomArrayElement, humanizeDate, getTimeDifference, humanizeDateTime , humanizeTime};\n","import {createElement} from '../render.js';\nimport {POINT_TYPES} from '../const.js';\nimport {firstLetterCap, humanizeDateTime} from '../utils.js';\n\nfunction createDestinationListTemplate(destinations) {\n return (destinations.map((destination) => ``).join(''));\n}\n\nfunction createTypeOfferTemplate(point, offers) {\n const typeOffers = offers.find((offer) => offer.type === point.type).offers;\n const pointOffers = typeOffers.filter((typeOffer) => point.offers.includes(typeOffer.id));\n\n return (\n `
    \n ${typeOffers.length ?\n `
    \n

    Offers

    \n
    \n\n ${typeOffers.map((typeOffer) => {\n const checkedOffers = pointOffers.map((offer) => offer.id).includes(typeOffer.id) ? 'checked' : '';\n\n return (`
    \n \n \n
    `\n );\n }).join('')}\n
    \n
    ` : ''}`\n );\n}\n\nfunction createPointTypeTemplate(type) {\n return (POINT_TYPES.map((pointType) => (\n `
    \n \n \n
    `\n )).join(''));\n}\n\nfunction createEditFormTemplate(point, offers, destinations) {\n const {basePrice, type, dateFrom, dateTo} = point;\n const pointDestination = destinations.find((dest) => dest.id === point.destination);\n const {description, name} = pointDestination;\n\n const pointTypeTemplate = createPointTypeTemplate(type);\n const typeOfferTemplate = createTypeOfferTemplate(point, offers);\n const destinationListTemplate = createDestinationListTemplate(destinations);\n\n const humanizedTimeFrom = humanizeDateTime(dateFrom);\n const humanizedTimeTo = humanizeDateTime(dateTo);\n\n return (`
  • \n
    \n
    \n
    \n \n \n\n
    \n
    \n Event type\n ${pointTypeTemplate}\n
    \n
    \n
    \n\n
    \n \n \n \n ${destinationListTemplate}\n \n
    \n\n
    \n \n \n —\n \n \n
    \n\n
    \n \n \n
    \n\n \n \n \n
    \n ${typeOfferTemplate}\n
    \n

    Destination

    \n

    ${description}

    \n
    \n
  • \n \n `);\n}\n\nexport default class EditFormView {\n constructor({point, offers, destinations}) {\n this.point = point;\n this.offers = offers;\n this.destinations = destinations;\n }\n\n getTemplate() {\n return createEditFormTemplate(this.point, this.offers, this.destinations);\n }\n\n getElement() {\n if (!this.element) {\n this.element = createElement(this.getTemplate());\n }\n\n return this.element;\n }\n\n removeElement() {\n this.element = null;\n }\n}\n","import {createElement} from '../render';\n\nfunction createRoutePointList() {\n return '
      ';\n}\n\nexport default class RoutePointListView {\n getTemplate() {\n return createRoutePointList();\n }\n\n getElement() {\n if (!this.element) {\n this.element = createElement(this.getTemplate());\n }\n return this.element;\n }\n\n removeElement() {\n this.element = null;\n }\n}\n","import {createElement} from '../render.js';\nimport {humanizeDate, getTimeDifference, humanizeTime} from '../utils.js';\n\nfunction createRoutePointTemplate(point, offers, destinations) {\n const {basePrice, type, dateFrom, dateTo, isFavorite} = point;\n\n const pointDateFrom = humanizeDate(dateFrom);\n const timeDifference = getTimeDifference(dateTo, dateFrom);\n const poinTimeFrom = humanizeTime(dateFrom);\n const pointTimeTo = humanizeTime(dateTo);\n\n const pointDestination = destinations.find((dest) => dest.id === point.destination);\n const typeOffers = offers.find((offer) => offer.type === point.type).offers;\n const pointOffers = typeOffers.filter((typeOffer) => point.offers.includes(typeOffer.id));\n\n const favoriteClassName = isFavorite ? 'event__favorite-btn--active' : '';\n\n return (`
    • \n
      \n \n
      \n \"Event\n
      \n

      ${type} ${pointDestination.name}

      \n
      \n

      \n \n —\n \n

      \n

      ${timeDifference}

      \n
      \n

      \n € ${basePrice}\n

      \n

      Offers:

      \n
        \n ${pointOffers.map((offer) => (\n `
      • \n ${offer.title}\n +€ \n ${offer.price}\n
      • `\n )).join('')}\n
      \n \n \n
      \n
    • `);\n}\n\nexport default class RoutePointView {\n constructor({point, offers, destinations}) {\n this.point = point;\n this.offers = offers;\n this.destinations = destinations;\n }\n\n getTemplate() {\n return createRoutePointTemplate(this.point, this.offers, this.destinations);\n }\n\n getElement() {\n if (!this.element) {\n this.element = createElement(this.getTemplate());\n }\n\n return this.element;\n }\n\n removeElement() {\n this.element = null;\n }\n}\n","\nconst mockDestinations = [\n {\n id: '54d2f62a-6862-45f7-a1da-331713ec17ce',\n description: 'Saint Petersburg - full of of cozy canteens where you can try the best coffee in the Middle East',\n name: 'Saint Petersburg',\n pictures: []\n },\n {\n id: 'dd43c534-f518-48c1-b3cd-fb4b7b2f787e',\n description: 'Vien - in a middle of Europe',\n name: 'Vien',\n pictures: []\n },\n {\n id: '4ab18ebc-63f5-487d-8957-b710a649ca50',\n description: 'Rome - famous for its crowded street markets with the best street food in Asia',\n name: 'Rome',\n pictures: [\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/4.jpg',\n description: 'Rome is a beautiful city'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/6.jpg',\n description: 'Rome is a beautiful city'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/10.jpg',\n description: 'Rome in a middle of Europe'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/16.jpg',\n description: 'Rome is a beautiful city'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/4.jpg',\n description: 'Rome middle-eastern paradise'\n }\n ]\n },\n {\n id: 'a30baa99-560e-499b-a722-064fdb220eb6',\n description: 'Naples - with a beautiful old town',\n name: 'Naples',\n pictures: [\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/10.jpg',\n description: 'Naples famous for its crowded street markets with the best street food in Asia'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/20.jpg',\n description: 'Naples middle-eastern paradise'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/11.jpg',\n description: 'Naples for those who value comfort and coziness'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/9.jpg',\n description: 'Naples is a beautiful city'\n }\n ]\n },\n {\n id: '88aa152d-9bda-4d6c-b002-81a34dc7914e',\n description: 'Tokio - with an embankment of a mighty river as a centre of attraction',\n name: 'Tokio',\n pictures: [\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/10.jpg',\n description: 'Tokio middle-eastern paradise'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/18.jpg',\n description: 'Tokio in a middle of Europe'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/11.jpg',\n description: 'Tokio is a beautiful city'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/19.jpg',\n description: 'Tokio a perfect place to stay with a family'\n }\n ]\n },\n {\n id: '2c2eeb4d-8fe2-4852-ba52-ad3afdf22ca1',\n description: 'Valencia - with an embankment of a mighty river as a centre of attraction',\n name: 'Valencia',\n pictures: [\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/9.jpg',\n description: 'Valencia a true asian pearl'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/16.jpg',\n description: 'Valencia with a beautiful old town'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/14.jpg',\n description: 'Valencia full of of cozy canteens where you can try the best coffee in the Middle East'\n }\n ]\n },\n {\n id: '22fdb8aa-6682-4f67-a2c4-3ba172eeede9',\n description: '',\n name: 'Oslo',\n pictures: []\n },\n {\n id: 'a8f0f30d-f243-45d0-af43-8d663a40712d',\n description: 'Monaco - middle-eastern paradise',\n name: 'Monaco',\n pictures: [\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/12.jpg',\n description: 'Monaco with crowded streets'\n }\n ]\n },\n {\n id: '4d516e51-d32e-4fee-9c3c-31024699e7c3',\n description: 'Madrid - with an embankment of a mighty river as a centre of attraction',\n name: 'Madrid',\n pictures: [\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/9.jpg',\n description: 'Madrid middle-eastern paradise'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/9.jpg',\n description: 'Madrid in a middle of Europe'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/14.jpg',\n description: 'Madrid is a beautiful city'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/1.jpg',\n description: 'Madrid in a middle of Europe'\n }\n ]\n },\n {\n id: '24514db9-cd07-4129-a377-8c6bd73d2e99',\n description: 'Rotterdam - for those who value comfort and coziness',\n name: 'Rotterdam',\n pictures: [\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/8.jpg',\n description: 'Rotterdam with crowded streets'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/3.jpg',\n description: 'Rotterdam full of of cozy canteens where you can try the best coffee in the Middle East'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/14.jpg',\n description: 'Rotterdam for those who value comfort and coziness'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/20.jpg',\n description: 'Rotterdam middle-eastern paradise'\n },\n {\n src: 'https://22.objects.htmlacademy.pro/static/destinations/17.jpg',\n description: 'Rotterdam a perfect place to stay with a family'\n }\n ]\n }\n];\n\nexport {mockDestinations};\n","const mockOffers = [\n {\n type: 'taxi',\n offers: [\n {\n id: 'd5d70b4c-27bf-4680-9f8c-07e02f10b16e',\n title: 'Upgrade to a business class',\n price: 158\n },\n {\n id: '1ef388a5-0a48-4e27-957f-6e265c8c3958',\n title: 'Choose the radio station',\n price: 92\n },\n {\n id: 'cdd79f71-1520-4b85-9135-98f009f4a5d6',\n title: 'Choose temperature',\n price: 180\n },\n {\n id: 'd44375b4-467b-4111-a86e-11a1f6e209a5',\n title: 'Drive quickly, I\\'m in a hurry',\n price: 141\n },\n {\n id: '6e77caf0-e083-497d-9b05-226272a3c557',\n title: 'Drive slowly',\n price: 170\n }\n ]\n },\n {\n type: 'bus',\n offers: [\n {\n id: '70b8b20a-aee2-4716-93a8-6090e90aaa5f',\n title: 'Infotainment system',\n price: 46\n },\n {\n id: 'f5ecc997-833b-4794-8a19-c9bf61830e15',\n title: 'Order meal',\n price: 125\n },\n {\n id: 'a3ebdd4e-9021-43be-ae41-6ba5b1a2c8c7',\n title: 'Choose seats',\n price: 135\n }\n ]\n },\n {\n type: 'train',\n offers: [\n {\n id: '5ac88f21-7096-40bf-b505-70f2ecda701c',\n title: 'Book a taxi at the arrival point',\n price: 80\n },\n {\n id: '59644519-f72b-4be3-b914-e8bf034ece5a',\n title: 'Order a breakfast',\n price: 178\n },\n {\n id: '4406d403-df60-4ede-bc53-cdb424cc40f1',\n title: 'Wake up at a certain time',\n price: 34\n }\n ]\n },\n {\n type: 'flight',\n offers: [\n {\n id: '21403e61-3256-485d-b648-771a1f2b3a1e',\n title: 'Choose meal',\n price: 151\n },\n {\n id: 'f50debc7-c76f-425b-bf31-edd84c5877ad',\n title: 'Choose seats',\n price: 169\n },\n {\n id: 'd64143b4-9527-4470-8ed1-5290d589b96b',\n title: 'Upgrade to comfort class',\n price: 185\n },\n {\n id: '0e87c0f3-7abc-4ba4-b4c8-e8774c6b86b0',\n title: 'Upgrade to business class',\n price: 147\n },\n {\n id: '3968d985-0310-490e-a0c7-f49f5f0b07a1',\n title: 'Add luggage',\n price: 143\n },\n {\n id: '471bf489-5102-4f18-a58e-69291145a936',\n title: 'Business lounge',\n price: 31\n }\n ]\n },\n {\n type: 'check-in',\n offers: [\n {\n id: '34adc3d6-9d70-4f96-ad91-5fb75a3a6e6d',\n title: 'Choose the time of check-in',\n price: 85\n },\n {\n id: 'f1a1984c-c1a7-4a8d-883d-5c8fcdb2fc84',\n title: 'Choose the time of check-out',\n price: 82\n },\n {\n id: '7daefd03-2d9a-4143-9419-ebba3b2247fd',\n title: 'Add breakfast',\n price: 89\n },\n {\n id: 'b75c96ec-f12f-403b-91be-abc0110b643f',\n title: 'Laundry',\n price: 169\n },\n {\n id: '1108cac6-d5e7-48ec-aebd-2e213444b1ee',\n title: 'Order a meal from the restaurant',\n price: 42\n }\n ]\n },\n {\n type: 'sightseeing',\n offers: []\n },\n {\n type: 'ship',\n offers: [\n {\n id: '7356e656-94e6-4f36-8bb5-163a17cfa841',\n title: 'Choose meal',\n price: 162\n },\n {\n id: 'b1bd6cc2-51ce-42b2-99f5-9df12a7f97f9',\n title: 'Choose seats',\n price: 109\n },\n {\n id: 'f91cfb4a-c241-4e22-8bf1-e5e8ab4bb222',\n title: 'Upgrade to comfort class',\n price: 72\n },\n {\n id: 'c5424871-ab68-48e9-95ae-da33312cb24d',\n title: 'Upgrade to business class',\n price: 133\n },\n {\n id: 'f0484591-cfda-45c8-9286-c222d8e1b701',\n title: 'Add luggage',\n price: 118\n },\n {\n id: '2fcaf275-8d86-4eb4-b4d8-e12f8c07edf3',\n title: 'Business lounge',\n price: 94\n }\n ]\n },\n {\n type: 'drive',\n offers: [\n {\n id: 'b8681284-e9c9-4b79-b14b-e33b0acc7591',\n title: 'With automatic transmission',\n price: 134\n },\n {\n id: 'b892f09d-d7c1-43d5-bb61-c320125af75d',\n title: 'With air conditioning',\n price: 68\n }\n ]\n },\n {\n type: 'restaurant',\n offers: [\n {\n id: 'aebb0086-2a49-4cfd-966f-969802c90981',\n title: 'Choose live music',\n price: 119\n },\n {\n id: '6b59afee-9409-41ec-9a52-ce3d0829c4ef',\n title: 'Choose VIP area',\n price: 73\n }\n ]\n }\n];\n\nexport {mockOffers};\n","import {getRandomArrayElement} from '../utils.js';\n\nconst mockPoints = [\n {\n id: 'ab11c7ec-63d2-4e49-bb4e-f000db081e9f',\n basePrice: 6284,\n dateFrom: '2025-02-11T09:46:12.970Z',\n dateTo: '2025-02-12T08:12:12.970Z',\n destination: '24514db9-cd07-4129-a377-8c6bd73d2e99',\n isFavorite: true,\n offers: [\n 'b8681284-e9c9-4b79-b14b-e33b0acc7591',\n 'b892f09d-d7c1-43d5-bb61-c320125af75d'\n ],\n type: 'drive'\n },\n {\n id: '754792f7-52a1-4a8a-93a6-7ce14ca86c14',\n basePrice: 3890,\n dateFrom: '2025-02-13T06:46:12.970Z',\n dateTo: '2025-02-14T12:13:12.970Z',\n destination: 'a8f0f30d-f243-45d0-af43-8d663a40712d',\n isFavorite: false,\n offers: [\n '1108cac6-d5e7-48ec-aebd-2e213444b1ee'\n ],\n type: 'check-in'\n },\n {\n id: 'bc3c49dd-9f9c-426a-ae6d-5f1f6237c35e',\n basePrice: 9509,\n dateFrom: '2025-02-15T03:07:12.970Z',\n dateTo: '2025-02-15T10:44:12.970Z',\n destination: '22fdb8aa-6682-4f67-a2c4-3ba172eeede9',\n isFavorite: true,\n offers: [\n '4406d403-df60-4ede-bc53-cdb424cc40f1'\n ],\n type: 'train'\n },\n {\n id: '5f5d0057-7442-451f-bb14-1041cf12674b',\n basePrice: 6618,\n dateFrom: '2025-02-16T17:02:12.970Z',\n dateTo: '2025-02-17T04:45:12.970Z',\n destination: '24514db9-cd07-4129-a377-8c6bd73d2e99',\n isFavorite: false,\n offers: [\n '70b8b20a-aee2-4716-93a8-6090e90aaa5f',\n 'f5ecc997-833b-4794-8a19-c9bf61830e15',\n 'a3ebdd4e-9021-43be-ae41-6ba5b1a2c8c7'\n ],\n type: 'bus'\n },\n {\n id: '02a1a91f-d8d7-4f60-8a8b-f0ad309d5298',\n basePrice: 8736,\n dateFrom: '2025-02-17T13:12:12.970Z',\n dateTo: '2025-02-18T05:41:12.970Z',\n destination: '24514db9-cd07-4129-a377-8c6bd73d2e99',\n isFavorite: false,\n offers: [\n 'b1bd6cc2-51ce-42b2-99f5-9df12a7f97f9',\n 'f91cfb4a-c241-4e22-8bf1-e5e8ab4bb222',\n 'c5424871-ab68-48e9-95ae-da33312cb24d',\n 'f0484591-cfda-45c8-9286-c222d8e1b701',\n '2fcaf275-8d86-4eb4-b4d8-e12f8c07edf3'\n ],\n type: 'ship'\n },\n {\n id: 'a22a4304-5d7a-436e-83b3-e4e52c5b0987',\n basePrice: 3075,\n dateFrom: '2025-02-20T01:38:12.970Z',\n dateTo: '2025-02-21T07:31:12.970Z',\n destination: '22fdb8aa-6682-4f67-a2c4-3ba172eeede9',\n isFavorite: true,\n offers: [\n '70b8b20a-aee2-4716-93a8-6090e90aaa5f',\n 'f5ecc997-833b-4794-8a19-c9bf61830e15',\n 'a3ebdd4e-9021-43be-ae41-6ba5b1a2c8c7'\n ],\n type: 'bus'\n },\n {\n id: '848b6def-66dd-4a30-8bc7-868f308c558b',\n basePrice: 9889,\n dateFrom: '2025-02-22T01:34:12.970Z',\n dateTo: '2025-02-23T12:31:12.970Z',\n destination: '88aa152d-9bda-4d6c-b002-81a34dc7914e',\n isFavorite: false,\n offers: [\n 'a3ebdd4e-9021-43be-ae41-6ba5b1a2c8c7'\n ],\n type: 'bus'\n },\n {\n id: '8dbbd41b-851d-4ce0-b791-e4c4b5ad9c0b',\n basePrice: 9609,\n dateFrom: '2025-02-23T20:06:12.970Z',\n dateTo: '2025-02-24T07:49:12.970Z',\n destination: '2c2eeb4d-8fe2-4852-ba52-ad3afdf22ca1',\n isFavorite: false,\n offers: [\n '471bf489-5102-4f18-a58e-69291145a936'\n ],\n type: 'flight'\n },\n {\n id: 'f19ad34d-fd8e-4924-88c3-41e1288fd8fd',\n basePrice: 9311,\n dateFrom: '2025-02-26T01:57:12.970Z',\n dateTo: '2025-02-27T23:52:12.970Z',\n destination: '88aa152d-9bda-4d6c-b002-81a34dc7914e',\n isFavorite: true,\n offers: [],\n type: 'sightseeing'\n },\n {\n id: '584f2b32-c787-4711-8455-e32cfe5322e6',\n basePrice: 8060,\n dateFrom: '2025-02-28T19:39:12.970Z',\n dateTo: '2025-03-02T17:31:12.970Z',\n destination: '4d516e51-d32e-4fee-9c3c-31024699e7c3',\n isFavorite: false,\n offers: [],\n type: 'sightseeing'\n },\n {\n id: '99658020-6d08-43fc-bca9-385caf33ebcb',\n basePrice: 2653,\n dateFrom: '2025-03-03T12:47:12.970Z',\n dateTo: '2025-03-04T13:58:12.970Z',\n destination: 'dd43c534-f518-48c1-b3cd-fb4b7b2f787e',\n isFavorite: true,\n offers: [\n 'cdd79f71-1520-4b85-9135-98f009f4a5d6',\n 'd44375b4-467b-4111-a86e-11a1f6e209a5',\n '6e77caf0-e083-497d-9b05-226272a3c557'\n ],\n type: 'taxi'\n },\n {\n id: '12e7ea0d-e79f-4f3a-8da9-9261eddd4e5b',\n basePrice: 6690,\n dateFrom: '2025-03-06T06:48:12.970Z',\n dateTo: '2025-03-07T06:11:12.970Z',\n destination: '88aa152d-9bda-4d6c-b002-81a34dc7914e',\n isFavorite: true,\n offers: [\n '34adc3d6-9d70-4f96-ad91-5fb75a3a6e6d',\n 'f1a1984c-c1a7-4a8d-883d-5c8fcdb2fc84',\n '7daefd03-2d9a-4143-9419-ebba3b2247fd',\n 'b75c96ec-f12f-403b-91be-abc0110b643f',\n '1108cac6-d5e7-48ec-aebd-2e213444b1ee'\n ],\n type: 'check-in'\n },\n {\n id: '1b830b3b-ff20-4674-8b0f-c3214cfbae73',\n basePrice: 7284,\n dateFrom: '2025-03-08T16:42:12.970Z',\n dateTo: '2025-03-10T13:09:12.970Z',\n destination: '88aa152d-9bda-4d6c-b002-81a34dc7914e',\n isFavorite: false,\n offers: [],\n type: 'taxi'\n },\n {\n id: '1a0e0ffd-0b1b-4779-bff8-6ca0a32af658',\n basePrice: 3362,\n dateFrom: '2025-03-12T00:38:12.970Z',\n dateTo: '2025-03-13T07:12:12.970Z',\n destination: '24514db9-cd07-4129-a377-8c6bd73d2e99',\n isFavorite: false,\n offers: [\n '6e77caf0-e083-497d-9b05-226272a3c557'\n ],\n type: 'taxi'\n },\n {\n id: '9e8ce435-52f2-40b6-b6f6-10e5b73ba3dc',\n basePrice: 7708,\n dateFrom: '2025-03-13T16:25:12.970Z',\n dateTo: '2025-03-14T19:39:12.970Z',\n destination: '22fdb8aa-6682-4f67-a2c4-3ba172eeede9',\n isFavorite: true,\n offers: [\n 'b892f09d-d7c1-43d5-bb61-c320125af75d'\n ],\n type: 'drive'\n },\n {\n id: '6102fd03-5945-4cdf-9045-cc8034827077',\n basePrice: 8632,\n dateFrom: '2025-03-16T06:31:12.970Z',\n dateTo: '2025-03-17T13:30:12.970Z',\n destination: '88aa152d-9bda-4d6c-b002-81a34dc7914e',\n isFavorite: true,\n offers: [],\n type: 'bus'\n },\n {\n id: '00ab297b-0e95-49a5-b671-542ee80b8b56',\n basePrice: 1569,\n dateFrom: '2025-03-18T11:21:12.970Z',\n dateTo: '2025-03-19T09:25:12.970Z',\n destination: '22fdb8aa-6682-4f67-a2c4-3ba172eeede9',\n isFavorite: false,\n offers: [],\n type: 'train'\n },\n {\n id: '00362c5a-5c49-4f32-8ecd-7fda767c5c08',\n basePrice: 4101,\n dateFrom: '2025-03-20T09:33:12.970Z',\n dateTo: '2025-03-21T17:57:12.970Z',\n destination: 'a8f0f30d-f243-45d0-af43-8d663a40712d',\n isFavorite: true,\n offers: [],\n type: 'check-in'\n },\n {\n id: 'a6b37366-b464-4756-9a68-34c3e34d80ae',\n basePrice: 8463,\n dateFrom: '2025-03-23T00:15:12.970Z',\n dateTo: '2025-03-24T00:26:12.970Z',\n destination: '22fdb8aa-6682-4f67-a2c4-3ba172eeede9',\n isFavorite: false,\n offers: [\n '471bf489-5102-4f18-a58e-69291145a936'\n ],\n type: 'flight'\n },\n {\n id: 'b42ff727-a449-4e22-bf89-2334d73f739e',\n basePrice: 6184,\n dateFrom: '2025-03-25T10:12:12.970Z',\n dateTo: '2025-03-27T06:18:12.970Z',\n destination: '24514db9-cd07-4129-a377-8c6bd73d2e99',\n isFavorite: false,\n offers: [\n 'd5d70b4c-27bf-4680-9f8c-07e02f10b16e',\n '1ef388a5-0a48-4e27-957f-6e265c8c3958',\n 'cdd79f71-1520-4b85-9135-98f009f4a5d6',\n 'd44375b4-467b-4111-a86e-11a1f6e209a5',\n '6e77caf0-e083-497d-9b05-226272a3c557'\n ],\n type: 'taxi'\n },\n {\n id: 'a716774c-e921-4ede-bc6e-5c3c49a09d37',\n basePrice: 5781,\n dateFrom: '2025-03-28T03:31:12.970Z',\n dateTo: '2025-03-29T17:57:12.970Z',\n destination: '88aa152d-9bda-4d6c-b002-81a34dc7914e',\n isFavorite: false,\n offers: [\n 'f50debc7-c76f-425b-bf31-edd84c5877ad',\n 'd64143b4-9527-4470-8ed1-5290d589b96b',\n '0e87c0f3-7abc-4ba4-b4c8-e8774c6b86b0',\n '3968d985-0310-490e-a0c7-f49f5f0b07a1',\n '471bf489-5102-4f18-a58e-69291145a936'\n ],\n type: 'flight'\n },\n {\n id: '01288957-597b-4926-a545-b3506d792081',\n basePrice: 8592,\n dateFrom: '2025-03-31T02:56:12.970Z',\n dateTo: '2025-04-02T02:12:12.970Z',\n destination: 'a8f0f30d-f243-45d0-af43-8d663a40712d',\n isFavorite: false,\n offers: [\n 'b1bd6cc2-51ce-42b2-99f5-9df12a7f97f9',\n 'f91cfb4a-c241-4e22-8bf1-e5e8ab4bb222',\n 'c5424871-ab68-48e9-95ae-da33312cb24d',\n 'f0484591-cfda-45c8-9286-c222d8e1b701',\n '2fcaf275-8d86-4eb4-b4d8-e12f8c07edf3'\n ],\n type: 'ship'\n },\n {\n id: '0f705908-1a03-4e67-baa6-5791e3dcc1fc',\n basePrice: 4241,\n dateFrom: '2025-04-02T15:01:12.970Z',\n dateTo: '2025-04-03T23:53:12.970Z',\n destination: '4d516e51-d32e-4fee-9c3c-31024699e7c3',\n isFavorite: true,\n offers: [],\n type: 'sightseeing'\n },\n {\n id: '26e2447f-f49d-412b-a983-35c0f7770dad',\n basePrice: 698,\n dateFrom: '2025-04-05T20:55:12.970Z',\n dateTo: '2025-04-07T05:36:12.970Z',\n destination: '22fdb8aa-6682-4f67-a2c4-3ba172eeede9',\n isFavorite: true,\n offers: [],\n type: 'train'\n },\n {\n id: '7415e8ca-88eb-43a5-b6d1-dec78f489322',\n basePrice: 39,\n dateFrom: '2025-04-07T23:11:12.970Z',\n dateTo: '2025-04-09T21:34:12.970Z',\n destination: '24514db9-cd07-4129-a377-8c6bd73d2e99',\n isFavorite: true,\n offers: [],\n type: 'sightseeing'\n }\n];\n\nfunction getRandomPoints() {\n return getRandomArrayElement(mockPoints);\n}\nexport {getRandomPoints};\n","import FilterView from './view/filter-view.js';\nimport HeaderInfoView from './view/header-info-view.js';\nimport {render} from './render.js';\nimport TripPresenter from './presenter/trip-presenter.js';\nimport PointsModel from './model/points-model.js';\n\nconst headerContainer = document.querySelector('.trip-main');\nconst filterContainer = headerContainer.querySelector('.trip-controls__filters');\nconst tripEventsContainer = document.querySelector('.trip-events');\n\nconst pointsModel = new PointsModel();\nconst tripPresenter = new TripPresenter({\n container: tripEventsContainer,\n pointsModel,\n});\n\nrender (new FilterView(), filterContainer);\nrender (new HeaderInfoView(), headerContainer, 'afterbegin');\n\ntripPresenter.init();\n","import {mockDestinations} from '../mock/destinations.js';\nimport {mockOffers} from '../mock/offers.js';\nimport {getRandomPoints} from '../mock/points.js';\nimport {POINT_COUNT} from '../const.js';\n\nexport default class PointsModel {\n points = Array.from({length: POINT_COUNT}, getRandomPoints);\n offers = mockOffers;\n destinations = mockDestinations;\n\n getPoints() {\n return this.points;\n }\n\n getOffers() {\n return this.offers;\n }\n\n getDestinations() {\n return this.destinations;\n }\n}\n","\nimport SortView from '../view/sort-view.js';\nimport EditFormView from '../view/edit-form-view.js';\nimport RoutePointListView from '../view/route-point-list-view.js';\nimport RoutePointView from '../view/route-point-view.js';\nimport {render} from '../render.js';\n\nexport default class TripPresenter {\n pointListElement = new RoutePointListView();\n\n constructor({container, pointsModel}) {\n this.container = container;\n this.pointsModel = pointsModel;\n }\n\n init() {\n this.points = [...this.pointsModel.getPoints()];\n this.offers = this.pointsModel.getOffers();\n this.destinations = this.pointsModel.getDestinations();\n\n render(new SortView(), this.container);\n render(this.pointListElement, this.container);\n render(new EditFormView({point: this.points[0], offers: this.offers, destinations: this.destinations}), this.pointListElement.getElement());\n\n for (let i = 0; i < this.points.length; i++) {\n render(new RoutePointView({point: this.points[i], offers: this.offers, destinations: this.destinations}), this.pointListElement.getElement());\n }\n }\n}\n","import {createElement} from '../render.js';\n\nfunction createFilterTemplate() {\n return (`
      \n
      \n \n \n
      \n\n
      \n \n \n
      \n\n
      \n \n \n
      \n\n
      \n \n \n
      \n\n \n
      `);\n}\n\nexport default class FilterView {\n getTemplate() {\n return createFilterTemplate();\n }\n\n getElement() {\n if (!this.element) {\n this.element = createElement(this.getTemplate());\n }\n\n return this.element;\n }\n\n removeElement() {\n this.element = null;\n }\n}\n","import {createElement} from '../render.js';\n\nfunction createHeaderInfoTemplate() {\n return (`
      \n
      \n

      Amsterdam — Chamonix — Geneva

      \n\n

      18 — 20 Mar

      \n
      \n\n

      \n Total: € 1230\n

      \n
      `);\n}\n\nexport default class HeaderInfoView {\n getTemplate() {\n return createHeaderInfoTemplate();\n }\n\n getElement() {\n if (!this.element) {\n this.element = createElement(this.getTemplate());\n }\n\n return this.element;\n }\n\n removeElement() {\n this.element = null;\n }\n}\n"],"names":["module","exports","e","n","r","i","s","u","a","o","f","h","c","d","l","$","y","M","name","weekdays","split","months","ordinal","t","m","String","length","Array","join","v","z","utcOffset","Math","abs","floor","date","year","month","clone","add","ceil","p","w","D","ms","Q","toLowerCase","replace","g","_","S","args","arguments","O","locale","$L","utc","$u","x","$x","$offset","this","parse","prototype","$d","Date","NaN","test","match","substring","UTC","init","$y","getFullYear","$M","getMonth","$D","getDate","$W","getDay","$H","getHours","$m","getMinutes","$s","getSeconds","$ms","getMilliseconds","$utils","isValid","toString","isSame","startOf","endOf","isAfter","isBefore","$g","set","unix","valueOf","getTime","toDate","apply","slice","$locale","weekStart","$set","min","daysInMonth","get","Number","round","subtract","format","invalidDate","meridiem","YY","YYYY","MM","MMM","monthsShort","MMMM","DD","dd","weekdaysMin","ddd","weekdaysShort","dddd","H","HH","hh","A","mm","ss","SSS","Z","getTimezoneOffset","diff","toJSON","toISOString","toUTCString","T","forEach","extend","$i","isDayjs","en","Ls","years","days","hours","minutes","seconds","milliseconds","weeks","$l","negative","parseFromMilliseconds","Object","keys","calMilliseconds","map","reduce","Y","as","humanize","fromNow","asMilliseconds","asSeconds","asMinutes","asHours","asDays","asWeeks","asMonths","asYears","duration","isDuration","bind","local","call","getUTCFullYear","getUTCMonth","getUTCDate","getUTCDay","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","$localOffset","isUTC","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","getter","__esModule","definition","key","defineProperty","enumerable","obj","prop","hasOwnProperty","createElement","template","newElement","document","innerHTML","firstElementChild","render","component","container","place","insertAdjacentElement","getElement","SortView","getTemplate","element","removeElement","POINT_TYPES","humanizeTime","time","dayjs","humanizeDateTime","dateTime","EditFormView","constructor","point","offers","destinations","basePrice","type","dateFrom","dateTo","pointDestination","find","dest","id","destination","description","pointTypeTemplate","pointType","word","toUpperCase","createPointTypeTemplate","typeOfferTemplate","typeOffers","offer","pointOffers","filter","typeOffer","includes","checkedOffers","title","price","createTypeOfferTemplate","destinationListTemplate","createDestinationListTemplate","createEditFormTemplate","RoutePointListView","RoutePointView","isFavorite","pointDateFrom","timeDifference","firstDate","secondDate","date1","date2","getTimeDifference","poinTimeFrom","pointTimeTo","favoriteClassName","createRoutePointTemplate","mockDestinations","pictures","src","mockOffers","mockPoints","getRandomPoints","items","random","headerContainer","querySelector","filterContainer","tripEventsContainer","pointsModel","points","from","getPoints","getOffers","getDestinations","tripPresenter","pointListElement"],"sourceRoot":""} \ No newline at end of file diff --git a/4/css/style.css b/4/css/style.css new file mode 100644 index 0000000..c6c86ec --- /dev/null +++ b/4/css/style.css @@ -0,0 +1,833 @@ +@font-face { + font-family: 'Montserrat'; + font-style: normal; + font-weight: 400; + src: local('Montserrat Regular'), local('Montserrat-Regular'), url('../fonts/Montserrat-Regular.woff2') format('woff2'); +} + +@font-face { + font-family: 'Montserrat'; + font-style: normal; + font-weight: 500; + src: local('Montserrat Medium'), local('Montserrat-Medium'), url('../fonts/Montserrat-Medium.woff2') format('woff2'); +} + +@font-face { + font-family: 'Montserrat'; + font-style: normal; + font-weight: 600; + src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'), url('../fonts/Montserrat-SemiBold.woff2') format('woff2'); +} + +@font-face { + font-family: 'Montserrat'; + font-style: normal; + font-weight: 700; + src: local('Montserrat Bold'), local('Montserrat-Bold'), url('../fonts/Montserrat-Bold.woff2') format('woff2'); +} + +@font-face { + font-family: 'Montserrat'; + font-style: normal; + font-weight: 800; + src: local('Montserrat ExtraBold'), local('Montserrat-ExtraBold'), url('../fonts/Montserrat-ExtraBold.woff2') format('woff2'); +} + +html { + height: 100%; } + +body { + padding: 0; + margin: 0; + -webkit-font-smoothing: antialiased; + -webkit-text-size-adjust: 100%; + -webkit-tap-highlight-color: transparent; } + +main { + display: block; } + +@-moz-document url-prefix() { + body { + font-weight: 200; + -moz-osx-font-smoothing: grayscale; } } + +.visually-hidden { + position: absolute; + overflow: hidden; + clip: rect(0 0 0 0); + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + border: 0; } + +.page-body { + display: -ms-flexbox; + display: flex; + -ms-flex-direction: column; + flex-direction: column; + height: 100%; + min-width: 1200px; + padding: 0; + margin: 0; + font-size: 17px; + line-height: 1.2; + font-family: "Montserrat", "Arial", sans-serif; + color: #000000; + background-color: #f2f2f2; } + +.page-body__container { + -ms-flex-positive: 1; + flex-grow: 1; + position: relative; + z-index: 0; + -webkit-box-sizing: border-box; + box-sizing: border-box; + width: 1200px; + padding: 0 10px; + margin: 0 auto; } + .page-body__container::after { + content: ""; + position: absolute; + z-index: -1; + top: 0; + bottom: 0; + left: 130px; + width: 2px; + background-color: rgba(255, 255, 255, 0.58); } + +.page-body__page-main { + -ms-flex-positive: 1; + flex-grow: 1; + display: -ms-flexbox; + display: flex; + -ms-flex-direction: column; + flex-direction: column; } + +.btn { + display: -ms-flexbox; + display: flex; + -ms-flex-align: center; + align-items: center; + -ms-flex-pack: center; + justify-content: center; + padding: 4px 16px 5px; + font-weight: 500; + font-size: 17px; + line-height: 21px; + font-family: inherit; + text-decoration: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + border: none; + border-radius: 15px; + cursor: pointer; + -webkit-transition: opacity 0.2s; + transition: opacity 0.2s; } + .btn:hover { + opacity: 0.8; } + .btn:active { + opacity: 0.6; } + .btn--big { + padding: 17px 29px 16px; + font-size: 18px; + line-height: 21px; + border-radius: 27px; } + .btn--yellow { + color: #424242; + background-color: #ffd054; } + .btn--blue { + color: #ffffff; + background-color: #0d8ae4; } + .btn:disabled { + opacity: 0.46; + cursor: default; } + +.page-header { + padding-top: 23px; + color: #ffffff; + background-color: #078ff0; + background-image: url("../img/header-bg.png"); + background-size: cover; + background-repeat: no-repeat; } + @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi), (min-resolution: 1.5dppx) { + .page-header { + background-image: url("../img/header-bg@2x.png"); } } + +.page-header__container { + display: -ms-flexbox; + display: flex; + -ms-flex-align: start; + align-items: flex-start; + padding-left: 110px; } + +.page-header__logo { + display: block; + width: 42px; + height: 42px; + margin-right: 18px; } + +.trip-main { + -ms-flex-positive: 1; + flex-grow: 1; + display: -ms-flexbox; + display: flex; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -ms-flex-align: start; + align-items: flex-start; + -ms-flex-pack: justify; + justify-content: space-between; + padding-bottom: 10px; } + .trip-main--hidden { + display: none; } + +.trip-main__trip-info { + width: 100%; + margin-bottom: 35px; } + +.trip-main__trip-controls { + margin-top: 36px; + width: 600px; } + +.trip-main__event-add-btn { + min-width: 170px; + margin-left: auto; } + .trip-main__event-add-btn::before { + content: "\002B\000A0"; } + .trip-main__event-add-btn--hidden { + display: none; } + +.trip-info { + display: -ms-flexbox; + display: flex; + -ms-flex-align: center; + align-items: center; + -ms-flex-pack: justify; } + +.trip-info__main { + width: 600px; } + +.trip-info__title { + margin: 0; + margin-bottom: 4px; + font-weight: 800; + font-size: 17px; + line-height: 21px; } + +.trip-info__dates { + margin: 0; + font-weight: 800; + font-size: 13px; + line-height: 16px; + text-transform: uppercase; + opacity: 0.8; } + +.trip-info__cost { + width: 170px; + margin: 0 0 0 auto; + font-weight: 700; + font-size: 21px; + line-height: 25px; + text-align: center; } + +.trip-controls__trip-tabs { + margin-bottom: 9px; } + +.trip-tabs { + display: -ms-flexbox; + display: flex; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -ms-flex-align: start; + align-items: flex-start; } + +.trip-tabs__btn { + display: block; + font-weight: 500; + font-size: 21px; + line-height: 25px; + text-decoration: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + color: inherit; + opacity: 0.8; + -webkit-transition: opacity 0.2s; + transition: opacity 0.2s; } + .trip-tabs__btn:not(:last-of-type) { + margin-right: 26px; } + .trip-tabs__btn:hover { + opacity: 1; } + .trip-tabs__btn:active { + opacity: 0.6; } + .trip-tabs__btn--active, .trip-tabs__btn--active:hover, .trip-tabs__btn--active:active { + opacity: 1; + cursor: default; } + +.trip-filters { + display: -ms-flexbox; + display: flex; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -ms-flex-align: start; + align-items: flex-start; } + .trip-filters--hidden { + display: none; } + +.trip-filters__filter:not(:last-of-type) { + margin-right: 19px; } + +.trip-filters__filter-label { + font-weight: 800; + font-size: 14px; + line-height: 17px; + letter-spacing: 0.5px; + text-transform: uppercase; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + opacity: 0.6; + cursor: pointer; + -webkit-transition: opacity 0.2s; + transition: opacity 0.2s; } + .trip-filters__filter-label:hover { + opacity: 1; } + .trip-filters__filter-label:active { + opacity: 0.6; } + .trip-filters__filter-input:checked + .trip-filters__filter-label { + opacity: 1; + cursor: default; } + .trip-filters__filter-input:disabled + .trip-filters__filter-label { + opacity: 0.4; + cursor: default; } + +.trip-events { + padding-top: 22px; } + .trip-events--hidden { + display: none; } + +.trip-events__trip-sort { + margin-bottom: 8px; } + +.trip-events__msg { + margin: 0; + margin-top: 280px; + font-weight: 500; + font-size: 44px; + line-height: 60px; + text-align: center; + opacity: 0.89; } + .trip-events__msg--hidden { + display: none; } + +.trip-events__list { + padding: 0; + margin: 0; + list-style: none; } + +.trip-events__item { + margin-bottom: 54px; + margin-left: auto; } + +.trip-sort { + display: -ms-flexbox; + display: flex; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -ms-flex-align: center; + align-items: center; } + +.trip-sort__item { + margin-right: 15px; + font-weight: 800; + font-size: 13px; + line-height: 16px; + letter-spacing: 0.6px; + text-transform: uppercase; + color: #b4b4b4; + cursor: default; + -webkit-transition: color 0.2s; + transition: color 0.2s; } + .trip-sort__item:last-child { + margin-right: 0; } + .trip-sort__item--day { + width: 55px; + text-align: center; + margin-right: 83px; } + .trip-sort__item--event { + width: 300px; } + .trip-sort__item--time { + width: 225px; } + .trip-sort__item--price { + width: 90px; } + +.trip-sort__btn { + display: -ms-inline-flexbox; + display: inline-flex; + -ms-flex-align: center; + align-items: center; + padding: 7px 15px 6px 22px; + border: 1px solid transparent; + border-radius: 14px; + cursor: pointer; } + .trip-sort__btn:hover { + color: #000000; } + .trip-sort__input:checked + .trip-sort__btn { + position: relative; + color: #000000; + border-color: #000000; } + .trip-sort__input:checked + .trip-sort__btn::before { + content: ""; + position: absolute; + top: 50%; + left: 8px; + width: 8px; + height: 8px; + background-color: #ffd054; + border-radius: 50%; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); } + +.trip-sort__input:disabled + .trip-sort__btn { + opacity: 0.6; } +.trip-sort__input:disabled + .trip-sort__btn:hover { + color: #b4b4b4; + cursor: default; } + +.event { + display: -ms-flexbox; + display: flex; + -ms-flex-align: center; + align-items: center; + -webkit-box-sizing: border-box; + box-sizing: border-box; + padding: 20px; + font-size: 17px; + line-height: 21px; } + .event--edit { + display: block; + margin-left: 80px; + padding: 0; + background-color: #ffffff; + border-radius: 18px; + -webkit-box-shadow: 0 11px 20px rgba(0, 0, 0, 0.043); + box-shadow: 0 11px 20px rgba(0, 0, 0, 0.043); } + +.event__header { + display: -ms-flexbox; + display: flex; + -ms-flex-align: center; + align-items: center; + padding: 20px; } + +.event__date { + display: block; + min-width: 80px; + font-size: 13px; + line-height: 16px; + text-transform: uppercase; + text-align: left; } + +.event__type-wrapper { + position: relative; } + +.event__type { + -ms-flex-negative: 0; + flex-shrink: 0; + display: -ms-flexbox; + display: flex; + -ms-flex-align: center; + align-items: center; + -ms-flex-pack: center; + justify-content: center; + -webkit-box-sizing: border-box; + box-sizing: border-box; + width: 42px; + height: 42px; + margin-right: 18px; + background-color: #ffffff; + border-radius: 50%; } + +.event__type-btn { + padding: 0; + border: 1px solid #0d8ae4; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + cursor: pointer; } + +.event__type-icon { + display: block; + width: 17px; + height: 17px; } + +.event__type-list { + position: absolute; + z-index: 2; + top: calc(100% + 7px); + left: -20px; + display: none; + width: 180px; + background-color: #ffffff; + border: 1px solid rgba(151, 151, 151, 0.169724); + -webkit-box-shadow: 0 11px 20px rgba(0, 0, 0, 0.219146); + box-shadow: 0 11px 20px rgba(0, 0, 0, 0.219146); + border-radius: 4px; } + +.event__type-toggle:checked + .event__type-list { + display: block; } + +.event__type-group { + padding: 13px 0 11px; + margin: 0; + border: none; } + .event__type-group:not(:last-of-type) { + border-bottom: 1px solid rgba(151, 151, 151, 0.33); } + +.event__type-item:not(:last-child) { + margin-bottom: 5px; } + +.event__type-label { + position: relative; + display: block; + padding: 5px 10px 5px 62px; + font-size: 17px; + line-height: 21px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + cursor: pointer; + -webkit-transition: color 0.2s; + transition: color 0.2s; } + .event__type-label::before { + content: ""; + position: absolute; + top: calc(50% - 3px); + left: 32px; + width: 17px; + height: 17px; + background-position: 0 0; + background-size: 17px 17px; + background-repeat: no-repeat; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); } + .event__type-label--taxi::before { + background-image: url("../img/icons/taxi.png"); } + .event__type-label--bus::before { + background-image: url("../img/icons/bus.png"); } + .event__type-label--train::before { + background-image: url("../img/icons/train.png"); } + .event__type-label--ship::before { + background-image: url("../img/icons/ship.png"); } + .event__type-label--drive::before { + background-image: url("../img/icons/drive.png"); } + .event__type-label--flight::before { + background-image: url("../img/icons/flight.png"); } + .event__type-label--check-in::before { + background-image: url("../img/icons/check-in.png"); } + .event__type-label--sightseeing::before { + background-image: url("../img/icons/sightseeing.png"); } + .event__type-label--restaurant::before { + background-image: url("../img/icons/restaurant.png"); } + .event__type-label:hover { + color: #ffd054; } + +.event__type-input:checked + .event__type-label { + color: #000000; + background-color: #ffd054; } + .event__type-input:checked + .event__type-label::after { + content: ""; + position: absolute; + top: 50%; + left: 11px; + width: 8px; + height: 8px; + background-color: #ffffff; + border-radius: 50%; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); } + +.event__title { + -ms-flex-negative: 0; + flex-shrink: 0; + width: 298px; + margin: 0; + margin-right: 15px; + font-weight: 400; + font-size: inherit; } + .event__title::first-letter { + text-transform: capitalize; } + +.event__schedule { + -ms-flex-negative: 0; + flex-shrink: 0; + width: 230px; + margin-right: 15px; } + +.event__time { + margin: 0; + margin-bottom: 4px; } + +.event__duration { + margin: 0; + font-size: 14px; + line-height: 17px; + letter-spacing: 0.6px; + text-transform: uppercase; + color: #999999; + opacity: 0.9; } + +.event__price { + -ms-flex-negative: 0; + flex-shrink: 0; + width: 90px; + margin: 0; + margin-right: 15px; } + +.event__selected-offers { + width: 220px; + padding: 0; + margin: 0; + font-weight: 600; + list-style: none; } + +.event__rollup-btn { + position: relative; + display: block; + width: 40px; + height: 40px; + padding: 0; + margin: 0; + background-color: transparent; + border: none; + cursor: pointer; } + .event__rollup-btn::after { + content: ""; + position: absolute; + top: calc(50% - 5px); + left: 50%; + width: 10px; + height: 10px; + border-right: 2px solid #000000; + border-bottom: 2px solid #000000; + -webkit-transform: translate(-50%, -50%) rotate(45deg); + transform: translate(-50%, -50%) rotate(45deg); + -webkit-transition: border-color 0.2s, -webkit-transform 0.6s; + transition: border-color 0.2s, -webkit-transform 0.6s; + transition: border-color 0.2s, transform 0.6s; + transition: border-color 0.2s, transform 0.6s, -webkit-transform 0.6s; } + .event__rollup-btn:hover::after { + border-color: #0d8ae4; } + +.event--edit .event__rollup-btn { + margin-left: auto; } +.event--edit .event__rollup-btn::after { + top: calc(50% + 3px); + -webkit-transform: translate(-50%, -50%) rotate(225deg); + transform: translate(-50%, -50%) rotate(225deg); } + +.event__field-group { + display: -ms-flexbox; + display: flex; + -ms-flex-align: center; + align-items: center; + padding: 5px 2px; + margin-right: 18px; + border-bottom: 1px solid #0d8ae4; } + .event__field-group--destination { + width: 290px; } + +.event__label { + margin-right: 5px; + cursor: pointer; } + .event__label::first-letter { + text-transform: capitalize; } + +.event__input { + -ms-flex-positive: 1; + flex-grow: 1; + padding: 0; + font-size: inherit; + line-height: inherit; + font-family: inherit; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + border: none; } + .event__input--destination { + width: 150px; } + .event__input--destination::-webkit-calendar-picker-indicator { + display: none; } + .event__input--time { + width: 130px; + text-align: center; } + .event__input--price { + width: 66px; } + +.event__save-btn { + margin-right: 18px; } + +.event__reset-btn { + display: block; + padding: 0; + font-weight: 500; + font-size: 17px; + line-height: 21px; + font-family: inherit; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + color: #0d8ae4; + background-color: transparent; + border: none; + cursor: pointer; + -webkit-transition: opacity 0.2s; + transition: opacity 0.2s; } + .event__reset-btn:hover { + opacity: 0.8; } + .event__reset-btn:active { + opacity: 0.6; } + +.event__favorite-btn { + margin: 0 10px; + margin-left: auto; + color: #ebebeb; + background-color: transparent; + border: none; + cursor: pointer; + outline: none; + -webkit-transition: color 0.2s; + transition: color 0.2s; } + .event__favorite-btn:hover, + .event__favorite-btn:focus { + color: rgba(255, 208, 84, 0.6); } + .event__favorite-btn--active { + color: #ffd054; + } + +.event__favorite-icon { + display: block; + width: 28px; + height: 28px; + fill: currentColor; + -webkit-transition: fill 0.2s; + transition: fill 0.2s; } + +.event__details { + padding: 20px 0 27px; + border-top: 2px solid #ffd054; } + +.event--blocked .event__details { + position: relative; } + .event--blocked .event__details::after { + content: ""; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: rgba(255, 255, 255, 0.8); + border-radius: 0 0 18px 18px; } + +.event__details-title { + padding-left: 20px; + margin: 0; + margin-bottom: 24px; + font-weight: 500; + font-size: 23px; + line-height: 27px; } + +.event__section:not(:last-child) { + margin-bottom: 28px; } + +.event__section--offers { + padding: 0 20px; } + +.event__section-title { + margin: 0; + font-weight: 800; + font-size: 14px; + line-height: 17px; + letter-spacing: 0.6px; + text-transform: uppercase; + color: #ffd054; } + .event__section-title--offers { + margin-bottom: 15px; } + .event__section-title--destination { + margin-bottom: 8px; + margin-left: 20px; } + +.event__available-offers { + display: -ms-flexbox; + display: flex; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + margin-bottom: -6px; } + +.event__offer::first-letter { + text-transform: capitalize; } + +.event__offer-selector { + margin-bottom: 6px; } + .event__offer-selector:not(:last-of-type) { + margin-right: 6px; } + +.event__offer-label { + display: block; + padding: 22px 30px 21px; + font-size: 17px; + line-height: 21px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + background-color: #f2f2f2; + border-radius: 32px; + cursor: pointer; + -webkit-transition: background-color 0.2s; + transition: background-color 0.2s; } + .event__offer-label:hover { + background-color: rgba(13, 138, 228, 0.6); } + .event__offer-label::first-letter { + text-transform: capitalize; } + +.event__offer-checkbox:checked + .event__offer-label { + background-color: #0d8ae4; } + +.event__destination-description { + width: 560px; + margin: 0; + margin-bottom: 16px; + margin-left: 20px; + font-size: 15px; + line-height: 18px; } + +.event__photos-container { + width: 100%; + overflow-x: scroll; } + +.event__photos-tape { + display: -ms-flexbox; + display: flex; + -ms-flex-align: start; + align-items: flex-start; } + +.event__photo { + display: block; + height: 152px; + width: auto; + border-radius: 4px; } + .event__photo:first-child { + padding-left: 20px; } + .event__photo:last-child { + padding-right: 20px; } + .event__photo:not(:last-child) { + margin-right: 5px; } diff --git a/4/fonts/Montserrat-Bold.woff2 b/4/fonts/Montserrat-Bold.woff2 new file mode 100644 index 0000000..3d0b409 Binary files /dev/null and b/4/fonts/Montserrat-Bold.woff2 differ diff --git a/4/fonts/Montserrat-ExtraBold.woff2 b/4/fonts/Montserrat-ExtraBold.woff2 new file mode 100644 index 0000000..0abb707 Binary files /dev/null and b/4/fonts/Montserrat-ExtraBold.woff2 differ diff --git a/4/fonts/Montserrat-Medium.woff2 b/4/fonts/Montserrat-Medium.woff2 new file mode 100644 index 0000000..9dc5c7f Binary files /dev/null and b/4/fonts/Montserrat-Medium.woff2 differ diff --git a/4/fonts/Montserrat-Regular.woff2 b/4/fonts/Montserrat-Regular.woff2 new file mode 100644 index 0000000..70788c2 Binary files /dev/null and b/4/fonts/Montserrat-Regular.woff2 differ diff --git a/4/fonts/Montserrat-SemiBold.woff2 b/4/fonts/Montserrat-SemiBold.woff2 new file mode 100644 index 0000000..29cc1a9 Binary files /dev/null and b/4/fonts/Montserrat-SemiBold.woff2 differ diff --git a/4/img/header-bg.png b/4/img/header-bg.png new file mode 100644 index 0000000..c7ccbda Binary files /dev/null and b/4/img/header-bg.png differ diff --git a/4/img/header-bg@2x.png b/4/img/header-bg@2x.png new file mode 100644 index 0000000..26716e3 Binary files /dev/null and b/4/img/header-bg@2x.png differ diff --git a/4/img/icons/bus.png b/4/img/icons/bus.png new file mode 100644 index 0000000..bb2bad6 Binary files /dev/null and b/4/img/icons/bus.png differ diff --git a/4/img/icons/check-in.png b/4/img/icons/check-in.png new file mode 100644 index 0000000..866702e Binary files /dev/null and b/4/img/icons/check-in.png differ diff --git a/4/img/icons/drive.png b/4/img/icons/drive.png new file mode 100644 index 0000000..ef3522d Binary files /dev/null and b/4/img/icons/drive.png differ diff --git a/4/img/icons/flight.png b/4/img/icons/flight.png new file mode 100644 index 0000000..3e690ca Binary files /dev/null and b/4/img/icons/flight.png differ diff --git a/4/img/icons/restaurant.png b/4/img/icons/restaurant.png new file mode 100644 index 0000000..d677771 Binary files /dev/null and b/4/img/icons/restaurant.png differ diff --git a/4/img/icons/ship.png b/4/img/icons/ship.png new file mode 100644 index 0000000..e854301 Binary files /dev/null and b/4/img/icons/ship.png differ diff --git a/4/img/icons/sightseeing.png b/4/img/icons/sightseeing.png new file mode 100644 index 0000000..a87e06b Binary files /dev/null and b/4/img/icons/sightseeing.png differ diff --git a/4/img/icons/taxi.png b/4/img/icons/taxi.png new file mode 100644 index 0000000..f052e81 Binary files /dev/null and b/4/img/icons/taxi.png differ diff --git a/4/img/icons/train.png b/4/img/icons/train.png new file mode 100644 index 0000000..1dfd1f3 Binary files /dev/null and b/4/img/icons/train.png differ diff --git a/4/img/icons/transport.png b/4/img/icons/transport.png new file mode 100644 index 0000000..9200b63 Binary files /dev/null and b/4/img/icons/transport.png differ diff --git a/4/img/logo.png b/4/img/logo.png new file mode 100644 index 0000000..f11c3ae Binary files /dev/null and b/4/img/logo.png differ diff --git a/4/img/photos/1.jpg b/4/img/photos/1.jpg new file mode 100644 index 0000000..2234819 Binary files /dev/null and b/4/img/photos/1.jpg differ diff --git a/4/img/photos/2.jpg b/4/img/photos/2.jpg new file mode 100644 index 0000000..833055b Binary files /dev/null and b/4/img/photos/2.jpg differ diff --git a/4/img/photos/3.jpg b/4/img/photos/3.jpg new file mode 100644 index 0000000..b63e90a Binary files /dev/null and b/4/img/photos/3.jpg differ diff --git a/4/img/photos/4.jpg b/4/img/photos/4.jpg new file mode 100644 index 0000000..de034f4 Binary files /dev/null and b/4/img/photos/4.jpg differ diff --git a/4/img/photos/5.jpg b/4/img/photos/5.jpg new file mode 100644 index 0000000..fa162ab Binary files /dev/null and b/4/img/photos/5.jpg differ diff --git a/4/index.html b/4/index.html new file mode 100644 index 0000000..53f0801 --- /dev/null +++ b/4/index.html @@ -0,0 +1 @@ +Big Trip

      Trip events

      \ No newline at end of file